Skip to content

Commit b62992a

Browse files
cransomrycee
authored andcommittedNov 2, 2017
kisslicer: init at 1.6.2
1 parent 473b1e3 commit b62992a

File tree

2 files changed

+60
-0
lines changed

2 files changed

+60
-0
lines changed
 

Diff for: ‎pkgs/tools/misc/kisslicer/default.nix

+58
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
{ fetchzip
2+
, libX11
3+
, mesa
4+
, makeWrapper
5+
, stdenv
6+
}:
7+
8+
let
9+
10+
libPath = stdenv.lib.makeLibraryPath [
11+
mesa
12+
stdenv.cc.cc
13+
libX11
14+
];
15+
16+
inidir = "\\\${XDG_CONFIG_HOME:-\\$HOME/.config}/kisslicer";
17+
18+
in
19+
20+
stdenv.mkDerivation rec {
21+
name = "kisslicer-1.6.2";
22+
23+
src = fetchzip {
24+
url = "http://www.kisslicer.com/uploads/1/5/3/8/15381852/kisslicer_linux64_1.6.2_release.zip";
25+
sha256 = "0fb7hzic78skq3ykc37srnjsw0yri7m0pb3arlz076ws7jrcbr0f";
26+
stripRoot = false;
27+
};
28+
29+
phases = [ "unpackPhase" "installPhase" "fixupPhase" ];
30+
31+
buildInputs = [
32+
makeWrapper
33+
mesa
34+
libX11
35+
];
36+
37+
installPhase = ''
38+
mkdir -p $out/bin
39+
cp -p * $out/bin
40+
'';
41+
42+
fixupPhase = ''
43+
chmod 755 $out/bin/KISSlicer
44+
patchelf --set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \
45+
--set-rpath ${libPath} $out/bin/KISSlicer
46+
wrapProgram $out/bin/KISSlicer \
47+
--add-flags "-inidir ${inidir}" \
48+
--run "mkdir -p ${inidir}"
49+
'';
50+
51+
meta = with stdenv.lib; {
52+
description = "Convert STL files into Gcode";
53+
homepage = http://www.kisslicer.com;
54+
license = licenses.unfree;
55+
maintainers = [ maintainers.cransom ];
56+
platforms = [ "x86_64-linux" ];
57+
};
58+
}

Diff for: ‎pkgs/top-level/all-packages.nix

+2
Original file line numberDiff line numberDiff line change
@@ -1128,6 +1128,8 @@ with pkgs;
11281128

11291129
kapacitor = callPackage ../servers/monitoring/kapacitor { };
11301130

1131+
kisslicer = callPackage ../tools/misc/kisslicer { };
1132+
11311133
lcdproc = callPackage ../servers/monitoring/lcdproc { };
11321134

11331135
languagetool = callPackage ../tools/text/languagetool { };

0 commit comments

Comments
 (0)
Please sign in to comment.