python3Packages.orjson: Disable failing tests on 32 bit
[NixPkgs.git] / pkgs / applications / graphics / lightburn / default.nix
blob86aed684db01ade1a001801434854581575354e4
1 { lib, stdenv, fetchurl, p7zip
2 , nss, nspr, libusb1
3 , qtbase, qtmultimedia, qtserialport
4 , autoPatchelfHook, wrapQtAppsHook
5 }:
7 stdenv.mkDerivation rec {
8   pname = "lightburn";
9   version = "1.2.01";
11   nativeBuildInputs = [
12     p7zip
13     autoPatchelfHook
14     wrapQtAppsHook
15   ];
17   src = fetchurl {
18     url = "https://github.com/LightBurnSoftware/deployment/releases/download/${version}/LightBurn-Linux64-v${version}.7z";
19     sha256 = "sha256-V4hswyj6Ly6inaIlHlxpvER8ar09wZ55Ad+xH4GbHfs=";
20   };
22   buildInputs = [
23     nss nspr libusb1
24     qtbase qtmultimedia qtserialport
25   ];
27   # We nuke the vendored Qt5 libraries that LightBurn ships and instead use our
28   # own.
29   unpackPhase = ''
30     7z x $src
31     rm -rf LightBurn/lib LightBurn/plugins
32   '';
34   installPhase = ''
35     mkdir -p $out/share $out/bin
36     cp -ar LightBurn $out/share/LightBurn
37     ln -s $out/share/LightBurn/LightBurn $out/bin
39     wrapQtApp $out/bin/LightBurn
40   '';
42   meta = {
43     description = "Layout, editing, and control software for your laser cutter";
44     homepage = "https://lightburnsoftware.com/";
45     sourceProvenance = with lib.sourceTypes; [ binaryNativeCode ];
46     license = lib.licenses.unfree;
47     maintainers = with lib.maintainers; [ q3k ];
48     platforms = [ "x86_64-linux" ];
49   };