Skip to content

Commit 8691f7f

Browse files
authored
lightburn: 1.6.04 -> 1.7.04 (NixOS#370314)
2 parents 4a1315c + d059c22 commit 8691f7f

File tree

1 file changed

+33
-11
lines changed

1 file changed

+33
-11
lines changed

pkgs/applications/graphics/lightburn/default.nix

Lines changed: 33 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -11,22 +11,27 @@
1111
qtserialport,
1212
cups,
1313
autoPatchelfHook,
14+
libgpg-error,
15+
e2fsprogs,
16+
makeDesktopItem,
17+
copyDesktopItems,
1418
}:
1519

1620
stdenv.mkDerivation rec {
1721
pname = "lightburn";
18-
version = "1.6.04";
22+
version = "1.7.04";
23+
24+
src = fetchurl {
25+
url = "https://release.lightburnsoftware.com/LightBurn/Release/LightBurn-v${version}/LightBurn-Linux64-v${version}.7z";
26+
hash = "sha256-zO6lQTlBARHmYIdq/xHwFg+6FLbkAIAWAG30Tpw8Z4c=";
27+
};
1928

2029
nativeBuildInputs = [
2130
p7zip
2231
autoPatchelfHook
32+
copyDesktopItems
2333
];
2434

25-
src = fetchurl {
26-
url = "https://github.com/LightBurnSoftware/deployment/releases/download/${version}/LightBurn-Linux64-v${version}.7z";
27-
sha256 = "sha256-3dvLUfOczysRC8Ou6aQHzzmJs2rwtKAvfrwpQ4VMB/M=";
28-
};
29-
3035
buildInputs = [
3136
nss
3237
nspr
@@ -35,27 +40,44 @@ stdenv.mkDerivation rec {
3540
qtmultimedia
3641
qtserialport
3742
cups
43+
libgpg-error
44+
e2fsprogs
3845
];
3946

4047
unpackPhase = ''
4148
7z x $src
4249
'';
4350

51+
desktopItems = [
52+
(makeDesktopItem {
53+
name = "lightburn";
54+
exec = "lightburn";
55+
icon = "lightburn";
56+
genericName = "LightBurn";
57+
desktopName = "LightBurn";
58+
})
59+
];
60+
4461
installPhase = ''
45-
mkdir -p $out/share $out/bin
46-
cp -ar LightBurn $out/share/LightBurn
47-
ln -s $out/share/LightBurn/AppRun $out/bin/LightBurn
62+
runHook preInstall
63+
64+
mkdir -p $out/bin $out/app
65+
cp -ar LightBurn $out/app/lightburn
66+
ln -s $out/app/lightburn/AppRun $out/bin/lightburn
67+
install -Dm644 $out/app/lightburn/LightBurn.png $out/share/pixmaps/lightburn.png
68+
69+
runHook postInstall
4870
'';
4971

5072
dontWrapQtApps = true;
5173

5274
meta = {
5375
description = "Layout, editing, and control software for your laser cutter";
54-
homepage = "https://lightburnsoftware.com/";
76+
homepage = "https://lightburnsoftware.com";
5577
sourceProvenance = with lib.sourceTypes; [ binaryNativeCode ];
5678
license = lib.licenses.unfree;
5779
maintainers = with lib.maintainers; [ q3k ];
5880
platforms = [ "x86_64-linux" ];
59-
mainProgram = "LightBurn";
81+
mainProgram = "lightburn";
6082
};
6183
}

0 commit comments

Comments
 (0)