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
32
nixos/tests/without-nix.nix
Normal file
32
nixos/tests/without-nix.nix
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
import ./make-test-python.nix ({ lib, ... }: {
|
||||
name = "without-nix";
|
||||
meta = with lib.maintainers; {
|
||||
maintainers = [ ericson2314 ];
|
||||
};
|
||||
|
||||
nodes.machine = { ... }: {
|
||||
nix.enable = false;
|
||||
nixpkgs.overlays = [
|
||||
(self: super: {
|
||||
nix = throw "don't want to use pkgs.nix";
|
||||
nixVersions = lib.mapAttrs (k: throw "don't want to use pkgs.nixVersions.${k}") super.nixVersions;
|
||||
# aliases, some deprecated
|
||||
nix_2_3 = throw "don't want to use pkgs.nix_2_3";
|
||||
nix_2_4 = throw "don't want to use pkgs.nix_2_4";
|
||||
nix_2_5 = throw "don't want to use pkgs.nix_2_5";
|
||||
nix_2_6 = throw "don't want to use pkgs.nix_2_6";
|
||||
nixFlakes = throw "don't want to use pkgs.nixFlakes";
|
||||
nixStable = throw "don't want to use pkgs.nixStable";
|
||||
nixUnstable = throw "don't want to use pkgs.nixUnstable";
|
||||
nixStatic = throw "don't want to use pkgs.nixStatic";
|
||||
})
|
||||
];
|
||||
};
|
||||
|
||||
testScript = ''
|
||||
start_all()
|
||||
|
||||
machine.succeed("which which")
|
||||
machine.fail("which nix")
|
||||
'';
|
||||
})
|
||||
Loading…
Add table
Add a link
Reference in a new issue