aboutsummaryrefslogtreecommitdiff
path: root/nixpkgs/pkgs/applications/graphics/lightburn/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/applications/graphics/lightburn/default.nix')
-rw-r--r--nixpkgs/pkgs/applications/graphics/lightburn/default.nix49
1 files changed, 49 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/applications/graphics/lightburn/default.nix b/nixpkgs/pkgs/applications/graphics/lightburn/default.nix
new file mode 100644
index 00000000000..7fcec93446d
--- /dev/null
+++ b/nixpkgs/pkgs/applications/graphics/lightburn/default.nix
@@ -0,0 +1,49 @@
+{ stdenv, patchelf, fetchurl, p7zip
+, nss, nspr, libusb1
+, qtbase, qtmultimedia, qtserialport
+, autoPatchelfHook, wrapQtAppsHook
+}:
+
+stdenv.mkDerivation rec {
+ pname = "lightburn";
+ version = "0.9.16";
+
+ nativeBuildInputs = [
+ p7zip
+ autoPatchelfHook
+ wrapQtAppsHook
+ ];
+
+ src = fetchurl {
+ url = "https://github.com/LightBurnSoftware/deployment/releases/download/${version}/LightBurn-Linux64-v${version}.7z";
+ sha256 = "0xmpglfzff3jpxbr304czsa24fbp497b69yd8kjkjdp2cd0l70qc";
+ };
+
+ 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 = "LightBurn is layout, editing, and control software for your laser cutter.";
+ homepage = "https://lightburnsoftware.com/";
+ license = stdenv.lib.licenses.unfree;
+ maintainers = with stdenv.lib.maintainers; [ q3k ];
+ platforms = [ "x86_64-linux" ];
+ };
+}