1 { lib, stdenv, fetchFromGitHub, libX11, imlib2, pkg-config, fetchpatch
2 , enableXinerama ? true, libXinerama
5 stdenv.mkDerivation rec {
9 src = fetchFromGitHub {
13 sha256 = "0w95828v0splk7bj5kfacp4pq6wxpyamvyjmahyvn5hc3ycq21mq";
18 url = "https://github.com/ttzhou/setroot/commit/d8ff8edd7d7594d276d741186bf9ccf0bce30277.patch";
19 sha256 = "sha256-e0iMSpiOmTOpQnp599fjH2UCPU4Oq1VKXcVypVoR9hw=";
23 nativeBuildInputs = [ pkg-config ];
25 buildInputs = [ libX11 imlib2 ]
26 ++ lib.optionals enableXinerama [ libXinerama ];
28 buildFlags = [ (if enableXinerama then "xinerama=1" else "xinerama=0") ] ;
30 installFlags = [ "PREFIX=$(out)" ];
33 description = "Simple X background setter inspired by imlibsetroot and feh";
34 homepage = "https://github.com/ttzhou/setroot";
35 license = licenses.gpl3Plus;
36 maintainers = [ maintainers.vyp ];
37 platforms = platforms.unix;
38 mainProgram = "setroot";