diff options
author | noctuid <noct@openmailbox.org> | 2016-01-06 03:12:04 -0500 |
---|---|---|
committer | noctuid <noct@openmailbox.org> | 2016-01-06 15:35:09 -0500 |
commit | db25c680c980c0685435501c0933e0e08c107eba (patch) | |
tree | 9b0f3973bd7ac1f95d2f9264f175bac4f6e6543a /pkgs/tools/X11/setroot | |
parent | 420f55542cd9935ac50311b8bfac1684d59b4e6d (diff) |
setroot: init at 1.4.4
Diffstat (limited to 'pkgs/tools/X11/setroot')
-rw-r--r-- | pkgs/tools/X11/setroot/default.nix | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/pkgs/tools/X11/setroot/default.nix b/pkgs/tools/X11/setroot/default.nix new file mode 100644 index 0000000000000..74e0ed8d029c8 --- /dev/null +++ b/pkgs/tools/X11/setroot/default.nix @@ -0,0 +1,31 @@ +{ stdenv, lib, fetchFromGitHub, libX11, imlib2 +, enableXinerama ? true, libXinerama ? null +}: + +assert enableXinerama -> libXinerama != null; + +stdenv.mkDerivation rec { + version = "1.4.4"; + name = "setroot-${version}"; + + src = fetchFromGitHub { + owner = "ttzhou"; + repo = "setroot"; + rev = "v${version}"; + sha256 = "0vphma0as8pnqrakdw6gaiiz7xawb4y72sc9dna755kkclgbyl8m"; + }; + + buildInputs = [ libX11 imlib2 ] + ++ stdenv.lib.optional enableXinerama libXinerama; + + buildFlags = if enableXinerama then "xinerama=1" else "xinerama=0"; + + 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; + platforms = platforms.unix; + }; +} |