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:
Anton Arapov 2021-04-03 12:58:10 +02:00 committed by Alan Daniels
commit 56de2bcd43
30691 changed files with 3076956 additions and 0 deletions

View file

@ -0,0 +1,25 @@
{ lib, buildGoPackage, fetchFromGitHub }:
buildGoPackage rec {
pname = "glock";
version = "20160816-${lib.strings.substring 0 7 rev}";
rev = "b8c84ff5ade15a6238ca61c20d3afc70d2e41276";
goPackagePath = "github.com/robfig/glock";
src = fetchFromGitHub {
inherit rev;
owner = "robfig";
repo = "glock";
sha256 = "10jwn3k71p340g8d43zjx7k1j534rcd7rss8pif09mpfrn9qndhh";
};
goDeps = ./deps.nix;
meta = with lib; {
homepage = "https://github.com/robfig/glock";
description = "A command-line tool to lock Go dependencies to specific revisions";
license = licenses.mit;
maintainers = [ maintainers.rushmorem ];
};
}

21
pkgs/development/tools/glock/deps.nix generated Normal file
View file

@ -0,0 +1,21 @@
# This file was generated by go2nix.
[
{
goPackagePath = "github.com/agtorre/gocolorize";
fetch = {
type = "git";
url = "https://github.com/agtorre/gocolorize";
rev = "f42b554bf7f006936130c9bb4f971afd2d87f671";
sha256 = "1dj7s8bgw9qky344d0k9gz661c0m317a08a590184drw7m51hy9p";
};
}
{
goPackagePath = "golang.org/x/tools";
fetch = {
type = "git";
url = "https://go.googlesource.com/tools";
rev = "f1a397bba50dee815e8c73f3ec94ffc0e8df1a09";
sha256 = "1wy8nn2vg70n98g80i1zrk49129phyfbzxbicj748bmf82rnaxzg";
};
}
]