git.iko.soy/typeable/nixpkgs
on master help sign in
setroot: init at 1.4.4
commitdb25c680c980c0685435501c0933e0e08c107eba authornoctuid <noct@openmailbox.org> dateWed 6 Jan 2016, 03:12 (11 years ago) parent420f555
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
@@ -3037,6 +3037,8 @@ let
30373037
30383038 seccure = callPackage ../tools/security/seccure { };
30393039
3040+ setroot = callPackage ../tools/X11/setroot { };
3041+
30403042 setserial = callPackage ../tools/system/setserial { };
30413043
30423044 seqdiag = pythonPackages.seqdiag;