at 16.09-beta 31 lines 840 B view raw
1{ stdenv, lib, fetchFromGitHub, libX11, imlib2 2, enableXinerama ? true, libXinerama ? null 3}: 4 5assert enableXinerama -> libXinerama != null; 6 7stdenv.mkDerivation rec { 8 version = "1.4.4"; 9 name = "setroot-${version}"; 10 11 src = fetchFromGitHub { 12 owner = "ttzhou"; 13 repo = "setroot"; 14 rev = "v${version}"; 15 sha256 = "0vphma0as8pnqrakdw6gaiiz7xawb4y72sc9dna755kkclgbyl8m"; 16 }; 17 18 buildInputs = [ libX11 imlib2 ] 19 ++ stdenv.lib.optional enableXinerama libXinerama; 20 21 buildFlags = "CC=cc " + (if enableXinerama then "xinerama=1" else "xinerama=0"); 22 23 installFlags = "DESTDIR=$(out) PREFIX="; 24 25 meta = with stdenv.lib; { 26 description = "Simple X background setter inspired by imlibsetroot and feh"; 27 homepage = https://github.com/ttzhou/setroot; 28 license = licenses.gpl3Plus; 29 platforms = platforms.unix; 30 }; 31}