Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 stdenv, 4 fetchgit, 5 autoconf, 6 automake, 7 libtool, 8 pkg-config, 9 xorg, 10 gnum4, 11 libxcb, 12 gperf, 13}: 14 15stdenv.mkDerivation { 16 pname = "xcb-util-cursor-0.1.1-3-unstable"; 17 version = "2017-04-05"; 18 19 src = fetchgit { 20 url = "http://anongit.freedesktop.org/git/xcb/util-cursor.git"; 21 rev = "f03cc278c6cce0cf721adf9c3764d3c5fba63392"; 22 sha256 = "127zfmihd8nqlj8jjaja06xb84xdgl263w0av1xnprx05mkbkcyc"; 23 }; 24 25 meta = with lib; { 26 description = "XCB cursor library (libxcursor port)"; 27 homepage = "https://cgit.freedesktop.org/xcb/util-cursor"; 28 license = licenses.mit; 29 maintainers = with maintainers; [ lovek323 ]; 30 platforms = platforms.linux ++ platforms.darwin; 31 }; 32 33 outputs = [ 34 "out" 35 "dev" 36 ]; 37 38 nativeBuildInputs = [ 39 autoconf 40 automake 41 pkg-config 42 ]; 43 buildInputs = [ 44 gnum4 45 gperf 46 libtool 47 libxcb 48 xorg.utilmacros 49 xorg.xcbutilimage 50 xorg.xcbutilrenderutil 51 ]; 52 53 configurePhase = '' 54 sed -i '15 i\ 55 LT_INIT' configure.ac 56 ${stdenv.shell} autogen.sh --prefix="$out" 57 ''; 58}