diff options
| author | Daiderd Jordan <daiderd@gmail.com> | 2018-01-07 00:06:53 +0100 |
|---|---|---|
| committer | Daiderd Jordan <daiderd@gmail.com> | 2018-01-07 00:06:53 +0100 |
| commit | 48b888c800448e2dd0577f6d33e0118d8d98301d (patch) | |
| tree | a89f9f77537a4f2bdaef149ca2328b9664205248 | |
| parent | 94a30ef0347bdeead226bfef712b030e213b4447 (diff) | |
nixpkgs: add test for overlays
| -rw-r--r-- | release.nix | 1 | ||||
| -rw-r--r-- | tests/nixpkgs-overlays.nix | 16 |
2 files changed, 17 insertions, 0 deletions
diff --git a/release.nix b/release.nix index df35a0b..479f18c 100644 --- a/release.nix +++ b/release.nix @@ -92,6 +92,7 @@ let tests.environment-path = makeTest ./tests/environment-path.nix; tests.launchd-setenv = makeTest ./tests/launchd-setenv.nix; tests.networking = makeTest ./tests/networking.nix; + tests.nixpkgs-overlays = makeTest ./tests/nixpkgs-overlays.nix; tests.services-activate-system = makeTest ./tests/services-activate-system.nix; tests.system-defaults-write = makeTest ./tests/system-defaults-write.nix; tests.system-packages = makeTest ./tests/system-packages.nix; diff --git a/tests/nixpkgs-overlays.nix b/tests/nixpkgs-overlays.nix new file mode 100644 index 0000000..aa03bf1 --- /dev/null +++ b/tests/nixpkgs-overlays.nix @@ -0,0 +1,16 @@ +{ config, pkgs, ... }: + +{ + nixpkgs.overlays = [ + (self: super: + { + hello = super.runCommand "hello" {} "mkdir $out"; + }) + ]; + + test = '' + echo checking /bin/hello >&2 + ! ${pkgs.hello}/bin/hello + ''; +} + |
