10 libPath = lib.makeLibraryPath [
16 inidir = "\\\${XDG_CONFIG_HOME:-\\$HOME/.config}/kisslicer";
20 stdenv.mkDerivation rec {
25 url = "https://www.kisslicer.com/uploads/1/5/3/8/15381852/kisslicer_linux64_${version}_release.zip";
26 sha256 = "1xmywj5jrcsqv1d5x3mphhvafs4mfm9l12npkhk7l03qxbwg9j82";
45 chmod 755 $out/bin/KISSlicer
46 patchelf --set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \
47 --set-rpath ${libPath} $out/bin/KISSlicer
48 wrapProgram $out/bin/KISSlicer \
49 --add-flags "-inidir ${inidir}" \
50 --run "mkdir -p ${inidir}"
54 description = "Convert STL files into Gcode";
55 homepage = "http://www.kisslicer.com";
56 sourceProvenance = with sourceTypes; [ binaryNativeCode ];
57 license = licenses.unfree;
58 maintainers = [ maintainers.cransom ];
59 platforms = [ "x86_64-linux" ];