blob: 669da86621fd3458b60540426478222cd24cd211 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
{ stdenv, lib, fetchFromGitHub, libX11, imlib2
, enableXinerama ? true, libXinerama ? null
}:
assert enableXinerama -> libXinerama != null;
stdenv.mkDerivation rec {
version = "2.0.1";
name = "setroot-${version}";
src = fetchFromGitHub {
owner = "ttzhou";
repo = "setroot";
rev = "v${version}";
sha256 = "01krjfc3xpp0wbqz9nvf1n34gkpd41gysn289sj1wcjxia4n4gsi";
};
buildInputs = [ libX11 imlib2 ]
++ stdenv.lib.optional enableXinerama libXinerama;
buildFlags = "CC=cc " + (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;
maintainers = [ maintainers.vyp ];
platforms = platforms.unix;
};
}
|