2021-01-17 00:15:33 +00:00
|
|
|
{ lib, stdenv, patchelf, fetchurl, p7zip
|
2020-09-25 04:45:31 +00:00
|
|
|
, nss, nspr, libusb1
|
|
|
|
, qtbase, qtmultimedia, qtserialport
|
|
|
|
, autoPatchelfHook, wrapQtAppsHook
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "lightburn";
|
2022-03-30 09:31:56 +00:00
|
|
|
version = "1.1.03";
|
2020-09-25 04:45:31 +00:00
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
p7zip
|
|
|
|
autoPatchelfHook
|
|
|
|
wrapQtAppsHook
|
|
|
|
];
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/LightBurnSoftware/deployment/releases/download/${version}/LightBurn-Linux64-v${version}.7z";
|
2022-03-30 09:31:56 +00:00
|
|
|
sha256 = "sha256-X7hAkzVqIABpyFokiYaMGZqSda69cKhKghFDWDEVOow=";
|
2020-09-25 04:45:31 +00: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 = {
|
2020-11-03 02:18:15 +00:00
|
|
|
description = "Layout, editing, and control software for your laser cutter";
|
2020-09-25 04:45:31 +00:00
|
|
|
homepage = "https://lightburnsoftware.com/";
|
2022-06-26 10:26:21 +00:00
|
|
|
sourceProvenance = with lib.sourceTypes; [ binaryNativeCode ];
|
2021-01-17 00:15:33 +00:00
|
|
|
license = lib.licenses.unfree;
|
|
|
|
maintainers = with lib.maintainers; [ q3k ];
|
2020-09-25 04:45:31 +00:00
|
|
|
platforms = [ "x86_64-linux" ];
|
|
|
|
};
|
|
|
|
}
|