1
0
Fork 0
mirror of https://github.com/LnL7/nix-darwin.git synced 2024-12-14 11:57:34 +00: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

16 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)
'';
}