mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-28 18:03:04 +00:00
51 lines
1.2 KiB
Nix
51 lines
1.2 KiB
Nix
{ lib, stdenv, fetchurl, p7zip
|
|
, nss, nspr, libusb1
|
|
, qtbase, qtmultimedia, qtserialport
|
|
, autoPatchelfHook, wrapQtAppsHook
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "lightburn";
|
|
version = "1.2.01";
|
|
|
|
nativeBuildInputs = [
|
|
p7zip
|
|
autoPatchelfHook
|
|
wrapQtAppsHook
|
|
];
|
|
|
|
src = fetchurl {
|
|
url = "https://github.com/LightBurnSoftware/deployment/releases/download/${version}/LightBurn-Linux64-v${version}.7z";
|
|
sha256 = "sha256-V4hswyj6Ly6inaIlHlxpvER8ar09wZ55Ad+xH4GbHfs=";
|
|
};
|
|
|
|
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 = "Layout, editing, and control software for your laser cutter";
|
|
homepage = "https://lightburnsoftware.com/";
|
|
sourceProvenance = with lib.sourceTypes; [ binaryNativeCode ];
|
|
license = lib.licenses.unfree;
|
|
maintainers = with lib.maintainers; [ q3k ];
|
|
platforms = [ "x86_64-linux" ];
|
|
};
|
|
}
|