git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #12175 from noctuid/setroot

setroot: init at 1.4.4

commitfea720f773c382ad406c01ce0d6f324033e49611 authorPascal Wittmann <PascalWittmann@gmx.net> dateThu 7 Jan 2016, 08:48 (11 years ago) parentd89454bdb25c68
2 files changed+33
pkgs/tools/X11/setroot/default.nix+31 pkgs/top-level/all-packages.nix+2
pkgs/tools/X11/setroot/default.nixnew file+31
@@ -0,0 +1,31 @@
1+{ stdenv, lib, fetchFromGitHub, libX11, imlib2
2+, enableXinerama ? true, libXinerama ? null
3+}:
4+
5+assert enableXinerama -> libXinerama != null;
6+
7+stdenv.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 = 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+}
pkgs/top-level/all-packages.nix+2
@@ -3033,6 +3033,8 @@ let
30333033
30343034 seccure = callPackage ../tools/security/seccure { };
30353035
3036+ setroot = callPackage ../tools/X11/setroot { };
3037+
30363038 setserial = callPackage ../tools/system/setserial { };
30373039
30383040 seqdiag = pythonPackages.seqdiag;