1
1
mirror of https://github.com/LnL7/nix-darwin.git synced 2024-09-11 12:49:18 +03:00

nixpkgs: add test for overlays

This commit is contained in:
Daiderd Jordan 2018-01-07 00:06:53 +01:00
parent 94a30ef034
commit 48b888c800
No known key found for this signature in database
GPG Key ID: D02435D05B810C96
2 changed files with 17 additions and 0 deletions

View File

@ -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;

View 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
'';
}