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
36
pkgs/tools/graphics/wallutils/default.nix
Normal file
36
pkgs/tools/graphics/wallutils/default.nix
Normal file
|
|
@ -0,0 +1,36 @@
|
|||
{ buildGoPackage, fetchFromGitHub, lib
|
||||
, pkg-config
|
||||
, wayland, libX11, xbitmaps, libXcursor, libXmu, libXpm, libheif
|
||||
}:
|
||||
|
||||
buildGoPackage rec {
|
||||
pname = "wallutils";
|
||||
version = "5.10.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "xyproto";
|
||||
repo = "wallutils";
|
||||
rev = version;
|
||||
sha256 = "1phlkpy8kg4ai2xmachpbbxvl8fga9hqqbad2a2121yl60709l1k";
|
||||
};
|
||||
|
||||
goPackagePath = "github.com/xyproto/wallutils";
|
||||
|
||||
patches = [ ./lscollection-Add-NixOS-paths-to-DefaultWallpaperDirectories.patch ];
|
||||
|
||||
postPatch = ''
|
||||
# VersionString is sometimes not up-to-date:
|
||||
sed -iE 's/VersionString = "[0-9].[0-9].[0-9]"/VersionString = "${version}"/' wallutils.go
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [ pkg-config ];
|
||||
buildInputs = [ wayland libX11 xbitmaps libXcursor libXmu libXpm libheif ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Utilities for handling monitors, resolutions, and (timed) wallpapers";
|
||||
inherit (src.meta) homepage;
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ ];
|
||||
platforms = platforms.linux;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue