2022-10-21 18:38:19 +00:00
|
|
|
{ lib, stdenv, fetchurl, p7zip
|
2020-09-25 04:45:31 +00:00
|
|
|
, nss, nspr, libusb1
|
2024-01-13 08:15:51 +00:00
|
|
|
, qtbase, qtmultimedia, qtserialport, cups
|
|
|
|
, autoPatchelfHook
|
2020-09-25 04:45:31 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "lightburn";
|
2024-09-19 14:19:46 +00:00
|
|
|
version = "1.6.04";
|
2020-09-25 04:45:31 +00:00
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
p7zip
|
|
|
|
autoPatchelfHook
|
|
|
|
];
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/LightBurnSoftware/deployment/releases/download/${version}/LightBurn-Linux64-v${version}.7z";
|
2024-09-19 14:19:46 +00:00
|
|
|
sha256 = "sha256-3dvLUfOczysRC8Ou6aQHzzmJs2rwtKAvfrwpQ4VMB/M=";
|
2020-09-25 04:45:31 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
nss nspr libusb1
|
2024-01-13 08:15:51 +00:00
|
|
|
qtbase qtmultimedia qtserialport cups
|
2020-09-25 04:45:31 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
unpackPhase = ''
|
|
|
|
7z x $src
|
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/share $out/bin
|
|
|
|
cp -ar LightBurn $out/share/LightBurn
|
2024-01-13 08:15:51 +00:00
|
|
|
ln -s $out/share/LightBurn/AppRun $out/bin/LightBurn
|
2020-09-25 04:45:31 +00:00
|
|
|
'';
|
|
|
|
|
2024-01-13 08:15:51 +00:00
|
|
|
dontWrapQtApps = true;
|
|
|
|
|
2020-09-25 04:45:31 +00:00
|
|
|
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" ];
|
2024-02-29 20:09:43 +00:00
|
|
|
mainProgram = "LightBurn";
|
2020-09-25 04:45:31 +00:00
|
|
|
};
|
|
|
|
}
|