Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 48 lines 1.1 kB view raw
1{ 2 lib, 3 stdenv, 4 fetchurl, 5 libX11, 6 libXinerama, 7 imlib2, 8}: 9 10stdenv.mkDerivation { 11 pname = "imlibsetroot"; 12 version = "1.2"; 13 src = fetchurl { 14 url = "https://robotmonkeys.net/wp-content/uploads/2010/03/imlibsetroot-12.tar.gz"; 15 sha256 = "8c1b3b7c861e4d865883ec13a96b8e4ab22464a87d4e6c67255b17a88e3cfd1c"; 16 }; 17 18 buildInputs = [ 19 libX11 20 imlib2 21 libXinerama 22 ]; 23 24 buildPhase = '' 25 runHook preBuild 26 27 gcc -g imlibsetroot.c -o imlibsetroot \ 28 -I${imlib2.dev}/include -L${imlib2}/lib -lImlib2 \ 29 -I${libX11.dev}/include -lXinerama -lX11 30 31 runHook postBuild 32 ''; 33 34 installPhase = '' 35 runHook preInstall 36 install -D -m 0755 imlibsetroot -t $out/bin 37 runHook postInstall 38 ''; 39 40 meta = with lib; { 41 description = "Xinerama Aware Background Changer"; 42 homepage = "http://robotmonkeys.net/2010/03/30/imlibsetroot/"; 43 license = licenses.mitAdvertising; 44 platforms = platforms.linux; 45 maintainers = with maintainers; [ dwarfmaster ]; 46 mainProgram = "imlibsetroot"; 47 }; 48}