diff options
author | Merlin Göttlinger <megoettlinger@gmail.com> | 2017-12-30 20:39:17 +0100 |
---|---|---|
committer | Will Dietz <w@wdtz.org> | 2018-01-02 13:19:47 -0600 |
commit | 60e76dfff86cf93483240159172449c66d0efcc5 (patch) | |
tree | 3d7749666ec11e2620fb47faac5125cdb23b9747 /pkgs/applications/misc/icesl | |
parent | c98eb9e9b982a33d00bb5ab7da8d646c63912e8e (diff) | |
download | nixlib-60e76dfff86cf93483240159172449c66d0efcc5.tar nixlib-60e76dfff86cf93483240159172449c66d0efcc5.tar.gz nixlib-60e76dfff86cf93483240159172449c66d0efcc5.tar.bz2 nixlib-60e76dfff86cf93483240159172449c66d0efcc5.tar.lz nixlib-60e76dfff86cf93483240159172449c66d0efcc5.tar.xz nixlib-60e76dfff86cf93483240159172449c66d0efcc5.tar.zst nixlib-60e76dfff86cf93483240159172449c66d0efcc5.zip |
icesl: init at 2.1.10
Diffstat (limited to 'pkgs/applications/misc/icesl')
-rw-r--r-- | pkgs/applications/misc/icesl/default.nix | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/pkgs/applications/misc/icesl/default.nix b/pkgs/applications/misc/icesl/default.nix new file mode 100644 index 000000000000..d39d734dd7b9 --- /dev/null +++ b/pkgs/applications/misc/icesl/default.nix @@ -0,0 +1,39 @@ +{ stdenv, lib, fetchzip, patchelf, freeglut, libXmu, libXi, libX11, libICE, mesa, libSM, libXext, dialog, makeWrapper }: +let + lpath = stdenv.lib.makeLibraryPath [ libXmu libXi libX11 freeglut libICE mesa libSM libXext ]; +in +stdenv.mkDerivation rec { + name = "iceSL-${version}"; + version = "2.1.10"; + + src = if stdenv.system == "x86_64-linux" then fetchzip { + url = "https://gforge.inria.fr/frs/download.php/file/37268/icesl${version}-amd64.zip"; + sha256 = "0dv3mq6wy46xk9blzzmgbdxpsjdaxid3zadfrysxlhmgl7zb2cn2"; + } else if stdenv.system == "i686-linux" then fetchzip { + url = "https://gforge.inria.fr/frs/download.php/file/37267/icesl${version}-i386.zip"; + sha256 = "0sl54fsb2gz6dy0bwdscpdq1ab6ph5b7zald3bwzgkqsvna7p1jr"; + } else throw "Unsupported architecture"; + + buildInputs = [ makeWrapper ]; + installPhase = '' + cp -r ./ $out + mkdir $out/oldbin + mv $out/bin/IceSL-slicer $out/oldbin/IceSL-slicer + runHook postInstall + ''; + + postInstall = '' + patchelf --set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \ + --set-rpath "${lpath}" \ + $out/oldbin/IceSL-slicer + makeWrapper $out/oldbin/IceSL-slicer $out/bin/icesl --prefix PATH : ${dialog}/bin + ''; + + meta = with lib; { + description = "IceSL is a GPU-accelerated procedural modeler and slicer for 3D printing."; + homepage = http://shapeforge.loria.fr/icesl/index.html; + license = licenses.inria-icesl; + platforms = [ "i686-linux" "x86_64-linux" ]; + maintainers = with maintainers; [ mgttlinger ]; + }; +} |