pass nixos path explicitly

This commit is contained in:
Jaka Hudoklin 2019-05-03 23:25:49 +02:00
parent 7b148cd171
commit e4493addd8
No known key found for this signature in database
GPG key ID: 916062A1C4748647
4 changed files with 15 additions and 9 deletions

View file

@ -1,4 +1,5 @@
{ pkgs ? import <nixpkgs> {}, lib ? pkgs.lib, e2e ? true, throwError ? true }:
{ pkgs ? import <nixpkgs> {}, nixosPath ? <nixpkgs/nixos>, lib ? pkgs.lib
, e2e ? true, throwError ? true }:
with lib;
@ -19,7 +20,7 @@ let
};
runK8STests = k8sVersion: pkgs.recurseIntoAttrs (import ./tests {
inherit pkgs lib kubenix k8sVersion e2e throwError;
inherit pkgs lib kubenix k8sVersion e2e throwError nixosPath;
});
in rec {
generate.k8s = pkgs.linkFarm "k8s-generated.nix" [{