nixpkgs/pkgs/applications/graphics/lightburn/default.nix

50 lines
1.2 KiB
Nix
Raw Normal View History

2021-01-15 13:21:58 +00:00
{ lib, stdenv, patchelf, fetchurl, p7zip
2020-07-30 14:14:38 +01:00
, nss, nspr, libusb1
, qtbase, qtmultimedia, qtserialport
, autoPatchelfHook, wrapQtAppsHook
}:
stdenv.mkDerivation rec {
pname = "lightburn";
2020-11-26 10:26:46 +00:00
version = "0.9.19";
2020-07-30 14:14:38 +01:00
nativeBuildInputs = [
p7zip
autoPatchelfHook
wrapQtAppsHook
];
src = fetchurl {
url = "https://github.com/LightBurnSoftware/deployment/releases/download/${version}/LightBurn-Linux64-v${version}.7z";
2020-11-26 10:26:46 +00:00
sha256 = "0j3ydivd666fphmgi3ar48xabgi2dcky7p2fyfl7ghxjplflqs9q";
2020-07-30 14:14:38 +01:00
};
buildInputs = [
nss nspr libusb1
qtbase qtmultimedia qtserialport
];
# We nuke the vendored Qt5 libraries that LightBurn ships and instead use our
# own.
unpackPhase = ''
7z x $src
rm -rf LightBurn/lib LightBurn/plugins
'';
installPhase = ''
mkdir -p $out/share $out/bin
cp -ar LightBurn $out/share/LightBurn
ln -s $out/share/LightBurn/LightBurn $out/bin
wrapQtApp $out/bin/LightBurn
'';
meta = {
description = "Layout, editing, and control software for your laser cutter";
2020-07-30 14:14:38 +01:00
homepage = "https://lightburnsoftware.com/";
2021-01-15 13:21:58 +00:00
license = lib.licenses.unfree;
maintainers = with lib.maintainers; [ q3k ];
2020-07-30 14:14:38 +01:00
platforms = [ "x86_64-linux" ];
};
}