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
30
pkgs/tools/misc/yafetch/default.nix
Normal file
30
pkgs/tools/misc/yafetch/default.nix
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
{ lib, stdenv, fetchFromGitHub }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "yafetch";
|
||||
version = "unstable-2022-04-20";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "kira64xyz";
|
||||
repo = pname;
|
||||
rev = "a118cfc13f0b475db7c266105c10138d838788b8";
|
||||
sha256 = "bSJlerfbJG6h5dDwWQKHnVLH6DEuvuUyqaRuJ7jvOsA=";
|
||||
};
|
||||
|
||||
# Use the provided NixOS logo automatically
|
||||
prePatch = ''
|
||||
substituteInPlace ./config.h --replace \
|
||||
"#include \"ascii/gnu.h\"" "#include \"ascii/nixos.h\""
|
||||
'';
|
||||
|
||||
# Fixes installation path
|
||||
PREFIX = placeholder "out";
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://github.com/kira64xyz/yafetch";
|
||||
description = "Yet another fetch clone written in C++";
|
||||
license = licenses.gpl3Plus;
|
||||
maintainers = with maintainers; [ ivar ashley ];
|
||||
platforms = platforms.linux;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue