kisslicer: init at 1.6.2
This commit is contained in:
parent
473b1e32b6
commit
b62992a483
58
pkgs/tools/misc/kisslicer/default.nix
Normal file
58
pkgs/tools/misc/kisslicer/default.nix
Normal file
@ -0,0 +1,58 @@
|
||||
{ fetchzip
|
||||
, libX11
|
||||
, mesa
|
||||
, makeWrapper
|
||||
, stdenv
|
||||
}:
|
||||
|
||||
let
|
||||
|
||||
libPath = stdenv.lib.makeLibraryPath [
|
||||
mesa
|
||||
stdenv.cc.cc
|
||||
libX11
|
||||
];
|
||||
|
||||
inidir = "\\\${XDG_CONFIG_HOME:-\\$HOME/.config}/kisslicer";
|
||||
|
||||
in
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "kisslicer-1.6.2";
|
||||
|
||||
src = fetchzip {
|
||||
url = "http://www.kisslicer.com/uploads/1/5/3/8/15381852/kisslicer_linux64_1.6.2_release.zip";
|
||||
sha256 = "0fb7hzic78skq3ykc37srnjsw0yri7m0pb3arlz076ws7jrcbr0f";
|
||||
stripRoot = false;
|
||||
};
|
||||
|
||||
phases = [ "unpackPhase" "installPhase" "fixupPhase" ];
|
||||
|
||||
buildInputs = [
|
||||
makeWrapper
|
||||
mesa
|
||||
libX11
|
||||
];
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/bin
|
||||
cp -p * $out/bin
|
||||
'';
|
||||
|
||||
fixupPhase = ''
|
||||
chmod 755 $out/bin/KISSlicer
|
||||
patchelf --set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \
|
||||
--set-rpath ${libPath} $out/bin/KISSlicer
|
||||
wrapProgram $out/bin/KISSlicer \
|
||||
--add-flags "-inidir ${inidir}" \
|
||||
--run "mkdir -p ${inidir}"
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Convert STL files into Gcode";
|
||||
homepage = http://www.kisslicer.com;
|
||||
license = licenses.unfree;
|
||||
maintainers = [ maintainers.cransom ];
|
||||
platforms = [ "x86_64-linux" ];
|
||||
};
|
||||
}
|
@ -1128,6 +1128,8 @@ with pkgs;
|
||||
|
||||
kapacitor = callPackage ../servers/monitoring/kapacitor { };
|
||||
|
||||
kisslicer = callPackage ../tools/misc/kisslicer { };
|
||||
|
||||
lcdproc = callPackage ../servers/monitoring/lcdproc { };
|
||||
|
||||
languagetool = callPackage ../tools/text/languagetool { };
|
||||
|
Loading…
Reference in New Issue
Block a user