mirror of
https://github.com/LnL7/nix-darwin.git
synced 2024-12-14 11:57:34 +00:00
nixpkgs: add test for overlays
This commit is contained in:
parent
94a30ef034
commit
48b888c800
2 changed files with 17 additions and 0 deletions
|
@ -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;
|
||||
|
|
16
tests/nixpkgs-overlays.nix
Normal file
16
tests/nixpkgs-overlays.nix
Normal file
|
@ -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
|
||||
'';
|
||||
}
|
||||
|
Loading…
Reference in a new issue