nixpkgs/pkgs/development/libraries/opencsg/default.nix
Ryan Mulligan 49a7813a68 opencsg: 1.4.0 -> 1.4.2
Semi-automatic update. These checks were performed:

- built on NixOS
- found 1.4.2 with grep in /nix/store/g48a1pwdycdlx5q4ayxgdyhw1jqp6mn7-opencsg-1.4.2
- found 1.4.2 in filename of file in /nix/store/g48a1pwdycdlx5q4ayxgdyhw1jqp6mn7-opencsg-1.4.2

cc "@raskin"
2018-02-28 11:30:16 +01:00

39 lines
895 B
Nix

{stdenv, fetchurl, mesa, freeglut, glew, libXmu, libXext, libX11
}:
stdenv.mkDerivation rec {
version = "1.4.2";
name = "opencsg-${version}";
src = fetchurl {
url = "http://www.opencsg.org/OpenCSG-${version}.tar.gz";
sha256 = "1ysazynm759gnw1rdhn9xw9nixnzrlzrc462340a6iif79fyqlnr";
};
buildInputs = [mesa freeglut glew libXmu libXext libX11];
doCheck = false;
preConfigure = ''
sed -i 's/^\(LIBS *=.*\)$/\1 -lX11/' example/Makefile
'';
installPhase = ''
mkdir -pv "$out/"{bin,share/doc/opencsg}
cp example/opencsgexample "$out/bin"
cp -r include lib "$out"
cp license.txt "$out/share/doc/opencsg"
'';
meta = {
description = "Constructive Solid Geometry library";
homepage = http://www.opencsg.org/;
platforms = with stdenv.lib.platforms;
linux;
maintainers = with stdenv.lib.maintainers;
[raskin];
};
}