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
24
pkgs/test/config.nix
Normal file
24
pkgs/test/config.nix
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
{ lib, ... }:
|
||||
lib.recurseIntoAttrs {
|
||||
|
||||
# https://github.com/NixOS/nixpkgs/issues/175196
|
||||
allowPkgsInPermittedInsecurePackages =
|
||||
let pkgs = import ../.. {
|
||||
config = {
|
||||
permittedInsecurePackages =
|
||||
tempAllow pkgs.authy "2.1.0" [ "electron-9.4.4" ];
|
||||
};
|
||||
};
|
||||
# A simplification of `tempAllow` that doesn't check the version, but
|
||||
# has the same strictness characteristics. Actually checking a version
|
||||
# here would add undue maintenance.
|
||||
#
|
||||
# Original:
|
||||
# tempAllow = p: v: pa:
|
||||
# lib.optionals (lib.assertMsg (p.version == v) "${p.name} is no longer at version ${v}, consider removing the tempAllow") pa;
|
||||
#
|
||||
tempAllow = p: v: pa: builtins.seq v builtins.seq p.version pa;
|
||||
|
||||
in pkgs.hello;
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue