1
1
mirror of https://github.com/LnL7/nix-darwin.git synced 2024-09-11 12:49:18 +03:00
nix-darwin/tests/nixpkgs-overlays.nix
Emily 9d53926782 tests: fix uses of !
`set -e` does not trigger on negations, so none of these were
actually being tested (and one appears to have been incorrectly
negated all along).
2023-08-05 23:30:16 +01:00

17 lines
228 B
Nix

{ config, pkgs, ... }:
{
nixpkgs.overlays = [
(self: super:
{
hello = super.runCommand "hello" {} "mkdir $out";
})
];
test = ''
echo checking /bin/hello >&2
(! ${pkgs.hello}/bin/hello)
'';
}