Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 46 lines 890 B view raw
1{ 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 pkg-config, 6 imlib2, 7 libX11, 8 libXinerama, 9}: 10 11stdenv.mkDerivation rec { 12 pname = "hsetroot"; 13 version = "1.0.5"; 14 15 src = fetchFromGitHub { 16 owner = "himdel"; 17 repo = "hsetroot"; 18 rev = version; 19 sha256 = "1jbk5hlxm48zmjzkaq5946s58rqwg1v1ds2sdyd2ba029hmvr722"; 20 }; 21 22 nativeBuildInputs = [ pkg-config ]; 23 buildInputs = [ 24 imlib2 25 libX11 26 libXinerama 27 ]; 28 29 postPatch = lib.optionalString (!stdenv.cc.isGNU) '' 30 sed -i -e '/--no-as-needed/d' Makefile 31 ''; 32 33 makeFlags = [ "PREFIX=$(out)" ]; 34 35 preInstall = '' 36 mkdir -p "$out/bin" 37 ''; 38 39 meta = with lib; { 40 description = "Allows you to compose wallpapers ('root pixmaps') for X"; 41 homepage = "https://github.com/himdel/hsetroot"; 42 license = licenses.gpl2Plus; 43 maintainers = with maintainers; [ shamilton ]; 44 platforms = platforms.unix; 45 }; 46}