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/text/goawk/default.nix
Normal file
36
pkgs/tools/text/goawk/default.nix
Normal file
|
|
@ -0,0 +1,36 @@
|
|||
{ buildGoModule, fetchFromGitHub, lib, stdenv }:
|
||||
|
||||
buildGoModule rec {
|
||||
pname = "goawk";
|
||||
version = "1.18.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "benhoyt";
|
||||
repo = "goawk";
|
||||
rev = "v${version}";
|
||||
sha256 = "sha256-kRakQo18qOzrlvsAKtKTHEacUxDfoWyMmtiM7d5WCvQ=";
|
||||
};
|
||||
|
||||
vendorSha256 = "sha256-pQpattmS9VmO3ZIQUFn66az8GSmB4IvYhTTCFn6SUmo=";
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace goawk_test.go \
|
||||
--replace "TestCommandLine" "SkipCommandLine" \
|
||||
--replace "TestDevStdout" "SkipDevStdout" \
|
||||
--replace "TestFILENAME" "SkipFILENAME" \
|
||||
--replace "TestWildcards" "SkipWildcards"
|
||||
|
||||
substituteInPlace interp/interp_test.go \
|
||||
--replace "TestShellCommand" "SkipShellCommand"
|
||||
'';
|
||||
|
||||
doCheck = (stdenv.system != "aarch64-darwin");
|
||||
|
||||
meta = with lib; {
|
||||
description = "A POSIX-compliant AWK interpreter written in Go";
|
||||
homepage = "https://benhoyt.com/writings/goawk/";
|
||||
license = licenses.mit;
|
||||
mainProgram = "goawk";
|
||||
maintainers = with maintainers; [ abbe ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue