diff options
author | Silvan Mosberger <contact@infinisil.com> | 2020-01-10 04:11:53 +0100 |
---|---|---|
committer | Silvan Mosberger <contact@infinisil.com> | 2020-01-10 04:13:28 +0100 |
commit | 2955e6bd260f0b65a859a4a76ce532528afc5275 (patch) | |
tree | 0cca6fcbf7bf0cea02693430ebe0b0f024571453 /lib/tests/modules/import-from-store.nix | |
parent | e0ea5f4d9ba5d8553fcadde487b57e6dbd1ff746 (diff) | |
download | nixpkgs-2955e6bd260f0b65a859a4a76ce532528afc5275.tar nixpkgs-2955e6bd260f0b65a859a4a76ce532528afc5275.tar.gz nixpkgs-2955e6bd260f0b65a859a4a76ce532528afc5275.tar.bz2 nixpkgs-2955e6bd260f0b65a859a4a76ce532528afc5275.tar.lz nixpkgs-2955e6bd260f0b65a859a4a76ce532528afc5275.tar.xz nixpkgs-2955e6bd260f0b65a859a4a76ce532528afc5275.tar.zst nixpkgs-2955e6bd260f0b65a859a4a76ce532528afc5275.zip |
lib/tests: Add test case for imports from derivations
Diffstat (limited to 'lib/tests/modules/import-from-store.nix')
-rw-r--r-- | lib/tests/modules/import-from-store.nix | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/lib/tests/modules/import-from-store.nix b/lib/tests/modules/import-from-store.nix new file mode 100644 index 00000000000..64e7ec2e388 --- /dev/null +++ b/lib/tests/modules/import-from-store.nix @@ -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 + ]; + +} |