diff options
author | Pascal Wittmann <PascalWittmann@gmx.net> | 2016-01-07 08:48:48 +0100 |
---|---|---|
committer | Pascal Wittmann <PascalWittmann@gmx.net> | 2016-01-07 08:48:48 +0100 |
commit | fea720f773c382ad406c01ce0d6f324033e49611 (patch) | |
tree | 37c6a372ebec2539c2dfdc04e7f1572f0a595032 /pkgs/tools | |
parent | d89454bb79d2495df903fc91d8c7a74ebdcc9cc3 (diff) | |
parent | db25c680c980c0685435501c0933e0e08c107eba (diff) | |
download | nixlib-fea720f773c382ad406c01ce0d6f324033e49611.tar nixlib-fea720f773c382ad406c01ce0d6f324033e49611.tar.gz nixlib-fea720f773c382ad406c01ce0d6f324033e49611.tar.bz2 nixlib-fea720f773c382ad406c01ce0d6f324033e49611.tar.lz nixlib-fea720f773c382ad406c01ce0d6f324033e49611.tar.xz nixlib-fea720f773c382ad406c01ce0d6f324033e49611.tar.zst nixlib-fea720f773c382ad406c01ce0d6f324033e49611.zip |
Merge pull request #12175 from noctuid/setroot
setroot: init at 1.4.4
Diffstat (limited to 'pkgs/tools')
-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 000000000000..74e0ed8d029c --- /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; + }; +} |