uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
39
pkgs/tools/X11/setroot/default.nix
Normal file
39
pkgs/tools/X11/setroot/default.nix
Normal file
|
|
@ -0,0 +1,39 @@
|
|||
{ lib, stdenv, fetchFromGitHub, libX11, imlib2, pkg-config, fetchpatch
|
||||
, enableXinerama ? true, libXinerama
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
version = "2.0.2";
|
||||
pname = "setroot";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "ttzhou";
|
||||
repo = "setroot";
|
||||
rev = "v${version}";
|
||||
sha256 = "0w95828v0splk7bj5kfacp4pq6wxpyamvyjmahyvn5hc3ycq21mq";
|
||||
};
|
||||
|
||||
patches = [
|
||||
(fetchpatch {
|
||||
url = "https://github.com/ttzhou/setroot/commit/d8ff8edd7d7594d276d741186bf9ccf0bce30277.patch";
|
||||
sha256 = "sha256-e0iMSpiOmTOpQnp599fjH2UCPU4Oq1VKXcVypVoR9hw=";
|
||||
})
|
||||
];
|
||||
|
||||
nativeBuildInputs = [ pkg-config ];
|
||||
|
||||
buildInputs = [ libX11 imlib2 ]
|
||||
++ lib.optionals enableXinerama [ libXinerama ];
|
||||
|
||||
buildFlags = [ (if enableXinerama then "xinerama=1" else "xinerama=0") ] ;
|
||||
|
||||
installFlags = [ "PREFIX=$(out)" ];
|
||||
|
||||
meta = with 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;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue