Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{lib, stdenv, fetchgit, cmake, libGLU, libGL, xorg }: 2 3stdenv.mkDerivation rec { 4 pname = "glee"; 5 rev = "f727ec7463d514b6279981d12833f2e11d62b33d"; 6 version = "20170205-${lib.strings.substring 0 7 rev}"; 7 8 src = fetchgit { 9 inherit rev; 10 url = "https://git.code.sf.net/p/${pname}/${pname}"; 11 sha256 = "13mf3s7nvmj26vr2wbcg08l4xxqsc1ha41sx3bfghvq8c5qpk2ph"; 12 }; 13 14 nativeBuildInputs = [ cmake ]; 15 16 buildInputs = [ libGLU libGL xorg.libX11 ]; 17 18 configureScript = '' 19 cmake 20 ''; 21 22 preInstall = '' 23 sed -i 's/readme/Readme/' cmake_install.cmake 24 ''; 25 26 meta = with lib; { 27 description = "GL Easy Extension Library"; 28 homepage = "https://sourceforge.net/p/glee/glee/"; 29 maintainers = with maintainers; [ ]; 30 platforms = platforms.linux; 31 license = licenses.gpl3; 32 }; 33}