nixpkgs/pkgs/tools/X11/setroot/default.nix

33 lines
874 B
Nix
Raw Normal View History

{ stdenv, fetchFromGitHub, libX11, imlib2
2016-01-06 08:12:04 +00:00
, enableXinerama ? true, libXinerama ? null
}:
assert enableXinerama -> libXinerama != null;
stdenv.mkDerivation rec {
2019-05-25 19:39:51 +01:00
version = "2.0.2";
pname = "setroot";
2016-01-06 08:12:04 +00:00
src = fetchFromGitHub {
owner = "ttzhou";
repo = "setroot";
rev = "v${version}";
2019-05-25 19:39:51 +01:00
sha256 = "0w95828v0splk7bj5kfacp4pq6wxpyamvyjmahyvn5hc3ycq21mq";
2016-01-06 08:12:04 +00:00
};
buildInputs = [ libX11 imlib2 ]
++ stdenv.lib.optional enableXinerama libXinerama;
buildFlags = [ "CC=cc" (if enableXinerama then "xinerama=1" else "xinerama=0") ] ;
2016-01-06 08:12:04 +00:00
installFlags = [ "DESTDIR=$(out)" "PREFIX=" ];
2016-01-06 08:12:04 +00:00
meta = with stdenv.lib; {
description = "Simple X background setter inspired by imlibsetroot and feh";
homepage = "https://github.com/ttzhou/setroot";
2016-01-06 08:12:04 +00:00
license = licenses.gpl3Plus;
maintainers = [ maintainers.vyp ];
2016-01-06 08:12:04 +00:00
platforms = platforms.unix;
};
}