23 lpath = lib.makeLibraryPath [
40 stdenv.mkDerivation rec {
45 if stdenv.hostPlatform.system == "x86_64-linux" then
47 url = "https://icesl.loria.fr/assets/other/download.php?build=${version}&os=amd64";
49 sha256 = "0rrnkqkhlsjclif5cjbf17qz64vs95ja49xarxjvq54wb4jhbs4l";
51 else if stdenv.hostPlatform.system == "i686-linux" then
53 url = "https://icesl.loria.fr/assets/other/download.php?build=${version}&os=i386";
55 sha256 = "0n2yyxzw0arkc70f0qli4n5chdlh9vc7aqizk4v7825mcglhwlyh";
58 throw "Unsupported architecture";
60 nativeBuildInputs = [ makeWrapper ];
65 mv $out/bin/IceSL-slicer $out/oldbin/IceSL-slicer
70 patchelf --set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \
71 --set-rpath "${lpath}" \
72 $out/oldbin/IceSL-slicer
73 makeWrapper $out/oldbin/IceSL-slicer $out/bin/icesl --prefix PATH : ${dialog}/bin
77 description = "GPU-accelerated procedural modeler and slicer for 3D printing";
78 homepage = "https://icesl.loria.fr/";
79 sourceProvenance = with sourceTypes; [ binaryNativeCode ];
80 license = licenses.inria-icesl;
85 maintainers = with maintainers; [ mgttlinger ];