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

32 lines
840 B
Nix
Raw Normal View History

2016-01-06 08:12:04 +00:00
{ 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;
2016-08-12 05:09:28 +00:00
buildFlags = "CC=cc " + (if enableXinerama then "xinerama=1" else "xinerama=0");
2016-01-06 08:12:04 +00:00
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;
};
}