Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 stdenv, 4 fetchurl, 5 cmake, 6 zlib, 7 libpng, 8 libGL, 9 libGLU, 10 libglut, 11}: 12 13stdenv.mkDerivation rec { 14 pname = "gl2ps"; 15 version = "1.4.2"; 16 17 src = fetchurl { 18 url = "http://geuz.org/gl2ps/src/${pname}-${version}.tgz"; 19 sha256 = "1sgzv547h7hrskb9qd0x5yp45kmhvibjwj2mfswv95lg070h074d"; 20 }; 21 22 nativeBuildInputs = [ 23 cmake 24 ]; 25 26 buildInputs = [ 27 zlib 28 libpng 29 ] 30 ++ lib.optionals (!stdenv.hostPlatform.isDarwin) [ 31 libGL 32 libGLU 33 libglut 34 ]; 35 36 meta = with lib; { 37 homepage = "http://geuz.org/gl2ps"; 38 description = "OpenGL to PostScript printing library"; 39 platforms = platforms.all; 40 license = licenses.lgpl2; 41 maintainers = with maintainers; [ 42 raskin 43 twhitehead 44 ]; 45 }; 46}