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
47
pkgs/tools/misc/uwufetch/default.nix
Normal file
47
pkgs/tools/misc/uwufetch/default.nix
Normal file
|
|
@ -0,0 +1,47 @@
|
|||
{ lib, stdenv, fetchFromGitHub, fetchpatch, makeWrapper, viu }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "uwufetch";
|
||||
version = "1.7";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "TheDarkBug";
|
||||
repo = pname;
|
||||
rev = version;
|
||||
hash = "sha256-6yfRWFKdg7wM18hD2Bn095HzpnURhZJtx+SYx8SVBLA=";
|
||||
};
|
||||
|
||||
patches = [
|
||||
# cannot find images in /usr
|
||||
./fix-paths.patch
|
||||
# https://github.com/TheDarkBug/uwufetch/pull/150
|
||||
(fetchpatch {
|
||||
url = "https://github.com/lourkeur/uwufetch/commit/de561649145b57d8750843555e4ffbc1cbcb01f0.patch";
|
||||
sha256 = "sha256-KR81zxGlmthcadYBdsiVwxa5+lZUtqP7w0O4uFuputE=";
|
||||
})
|
||||
];
|
||||
|
||||
nativeBuildInputs = [ makeWrapper ];
|
||||
|
||||
installFlags = [
|
||||
"PREFIX=${placeholder "out"}/bin"
|
||||
"LIBDIR=${placeholder "out"}/lib"
|
||||
"MANDIR=${placeholder "out"}/share/man/man1"
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
substituteAllInPlace uwufetch.c
|
||||
'';
|
||||
|
||||
postFixup = ''
|
||||
wrapProgram $out/bin/uwufetch \
|
||||
--prefix PATH ":" ${lib.makeBinPath [ viu ]}
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "A meme system info tool for Linux";
|
||||
homepage = "https://github.com/TheDarkBug/uwufetch";
|
||||
license = licenses.gpl3Plus;
|
||||
maintainers = with maintainers; [ lourkeur ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue