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
25
pkgs/development/dhall-modules/lib.nix
Normal file
25
pkgs/development/dhall-modules/lib.nix
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
{ lib }:
|
||||
|
||||
let
|
||||
# This is essentially the same thing as `lib.makeOverridable`, except storing
|
||||
# the override method in a method named `overridePackage` so that it's not
|
||||
# shadowed by the `override` method added by `callPackage`
|
||||
makePackageOverridable = f: args:
|
||||
let
|
||||
result = lib.makeOverridable f args;
|
||||
|
||||
copyArgs = g: lib.setFunctionArgs g (lib.functionArgs f);
|
||||
|
||||
overrideWith =
|
||||
update: args // (if lib.isFunction update then update args else update);
|
||||
|
||||
overridePackage =
|
||||
copyArgs (update: makePackageOverridable f (overrideWith update));
|
||||
|
||||
in
|
||||
result // { inherit overridePackage; };
|
||||
|
||||
in
|
||||
lib // {
|
||||
inherit makePackageOverridable;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue