2016-01-06 09:12:04 +01:00
|
|
|
{ stdenv, lib, fetchFromGitHub, libX11, imlib2
|
|
|
|
, enableXinerama ? true, libXinerama ? null
|
|
|
|
}:
|
|
|
|
|
|
|
|
assert enableXinerama -> libXinerama != null;
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2017-07-23 21:38:06 +02:00
|
|
|
version = "2.0.1";
|
2016-01-06 09:12:04 +01:00
|
|
|
name = "setroot-${version}";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "ttzhou";
|
|
|
|
repo = "setroot";
|
|
|
|
rev = "v${version}";
|
2017-07-23 21:38:06 +02:00
|
|
|
sha256 = "01krjfc3xpp0wbqz9nvf1n34gkpd41gysn289sj1wcjxia4n4gsi";
|
2016-01-06 09:12:04 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ libX11 imlib2 ]
|
|
|
|
++ stdenv.lib.optional enableXinerama libXinerama;
|
|
|
|
|
2016-08-12 07:09:28 +02:00
|
|
|
buildFlags = "CC=cc " + (if enableXinerama then "xinerama=1" else "xinerama=0");
|
2016-01-06 09:12:04 +01:00
|
|
|
|
|
|
|
installFlags = "DESTDIR=$(out) PREFIX=";
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Simple X background setter inspired by imlibsetroot and feh";
|
|
|
|
homepage = https://github.com/ttzhou/setroot;
|
|
|
|
license = licenses.gpl3Plus;
|
2017-12-05 23:20:11 +01:00
|
|
|
maintainers = [ maintainers.vyp ];
|
2016-01-06 09:12:04 +01:00
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|