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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

41 lines
1.1 KiB
Nix
Raw Normal View History

2022-05-21 22:27:08 +03:00
{ lib, stdenv, fetchFromGitHub, libX11, imlib2, pkg-config, fetchpatch
, enableXinerama ? true, libXinerama
2016-01-06 11:12:04 +03:00
}:
stdenv.mkDerivation rec {
2019-05-25 21:39:51 +03:00
version = "2.0.2";
pname = "setroot";
2016-01-06 11:12:04 +03:00
src = fetchFromGitHub {
owner = "ttzhou";
repo = "setroot";
rev = "v${version}";
2019-05-25 21:39:51 +03:00
sha256 = "0w95828v0splk7bj5kfacp4pq6wxpyamvyjmahyvn5hc3ycq21mq";
2016-01-06 11:12:04 +03:00
};
2022-05-21 22:27:08 +03:00
patches = [
(fetchpatch {
url = "https://github.com/ttzhou/setroot/commit/d8ff8edd7d7594d276d741186bf9ccf0bce30277.patch";
sha256 = "sha256-e0iMSpiOmTOpQnp599fjH2UCPU4Oq1VKXcVypVoR9hw=";
})
];
nativeBuildInputs = [ pkg-config ];
2016-01-06 11:12:04 +03:00
buildInputs = [ libX11 imlib2 ]
2022-05-21 22:27:08 +03:00
++ lib.optionals enableXinerama [ libXinerama ];
2016-01-06 11:12:04 +03:00
2022-05-21 22:27:08 +03:00
buildFlags = [ (if enableXinerama then "xinerama=1" else "xinerama=0") ] ;
2016-01-06 11:12:04 +03:00
2022-05-21 22:27:08 +03:00
installFlags = [ "PREFIX=$(out)" ];
2016-01-06 11:12:04 +03:00
meta = with lib; {
2016-01-06 11:12:04 +03:00
description = "Simple X background setter inspired by imlibsetroot and feh";
homepage = "https://github.com/ttzhou/setroot";
2016-01-06 11:12:04 +03:00
license = licenses.gpl3Plus;
maintainers = [ maintainers.vyp ];
2016-01-06 11:12:04 +03:00
platforms = platforms.unix;
2023-11-24 00:09:35 +03:00
mainProgram = "setroot";
2016-01-06 11:12:04 +03:00
};
}