1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-21 05:25:38 +00:00
nixpkgs/pkgs/development/libraries/opencsg/default.nix
Silvan Mosberger f5fa5fa4d6 pkgs: refactor needless quoting of homepage meta attribute (#27809)
* pkgs: refactor needless quoting of homepage meta attribute

A lot of packages are needlessly quoting the homepage meta attribute
(about 1400, 22%), this commit refactors all of those instances.

* pkgs: Fixing some links that were wrongfully unquoted in the previous
commit

* Fixed some instances
2017-08-01 22:03:30 +02:00

39 lines
895 B
Nix

{stdenv, fetchurl, mesa, freeglut, glew, libXmu, libXext, libX11
}:
stdenv.mkDerivation rec {
version = "1.4.0";
name = "opencsg-${version}";
src = fetchurl {
url = "http://www.opencsg.org/OpenCSG-${version}.tar.gz";
sha256 = "13c73jxadm27h7spdh3qj1v6rnn81v4xwqlv5a6k72pv9kjnpd7c";
};
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];
};
}