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,45 @@
{ lib
, fetchFromGitHub
, crystal
}:
let
generic =
{ version, hash }:
crystal.buildCrystalPackage {
pname = "shards";
inherit version;
src = fetchFromGitHub {
owner = "crystal-lang";
repo = "shards";
rev = "v${version}";
inherit hash;
};
# we cannot use `make` or `shards` here as it would introduce a cyclical dependency
format = "crystal";
shardsFile = ./shards.nix;
crystalBinaries.shards.src = "./src/shards.cr";
# tries to execute git which fails spectacularly
doCheck = false;
meta = with lib; {
description = "Dependency manager for the Crystal language";
license = licenses.asl20;
maintainers = with maintainers; [ peterhoeg ];
inherit (crystal.meta) homepage platforms;
};
};
in
rec {
shards_0_17 = generic {
version = "0.17.0";
hash = "sha256-f9MptrKalW7gi0J2h0fokkzdjKBVa2TmoPX8BYffqzY=";
};
shards = shards_0_17;
}

View file

@ -0,0 +1,8 @@
{
molinillo = {
owner = "crystal-lang";
repo = "crystal-molinillo";
rev = "v0.2.0";
sha256 = "0pzi8pbrjn03zgk3kbha2kqqq0crmr8gy98dr05kisafvbghzwnh";
};
}