lib/tests: Add test case for imports from derivations

This commit is contained in:
Silvan Mosberger
2020-01-10 04:13:28 +01:00
parent e0ea5f4d9b
commit 2955e6bd26
2 changed files with 21 additions and 1 deletions
+17
View File
@@ -0,0 +1,17 @@
{ lib, ... }:
let
drv = derivation {
name = "derivation";
system = builtins.currentSystem;
builder = "/bin/sh";
args = [ "-c" "echo {} > $out" ];
};
in {
imports = [
"${drv}"
./declare-enable.nix
./define-enable.nix
];
}