Skip to content

Commit

Permalink
kisslicer: init at 1.6.2
Browse files Browse the repository at this point in the history
  • Loading branch information
cransom authored and rycee committed Nov 2, 2017
1 parent 473b1e3 commit b62992a
Show file tree
Hide file tree
Showing 2 changed files with 60 additions and 0 deletions.
58 changes: 58 additions & 0 deletions pkgs/tools/misc/kisslicer/default.nix
@@ -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" ];
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/all-packages.nix
Expand Up @@ -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 { };
Expand Down

0 comments on commit b62992a

Please sign in to comment.