Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib 2, stdenv 3, fetchurl 4, cmake 5, zlib 6, libpng 7, libGL 8, libGLU 9, freeglut 10, darwin 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 ] ++ lib.optionals (!stdenv.isDarwin) [ 30 libGL 31 libGLU 32 freeglut 33 ] ++ lib.optionals stdenv.isDarwin [ 34 darwin.apple_sdk.frameworks.OpenGL 35 ]; 36 37 meta = with lib; { 38 homepage = "http://geuz.org/gl2ps"; 39 description = "An OpenGL to PostScript printing library"; 40 platforms = platforms.all; 41 license = licenses.lgpl2; 42 maintainers = with maintainers; [ raskin twhitehead ]; 43 }; 44}