1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-11-24 12:09:46 +01:00
home-manager/tests/modules/programs/autojump/default-settings.nix
Naïm Favier 221056c59f
tests: fix getOutput on stubs
Setting `outputSpecified` prevents `getOutput` from descending into
outputs, which don't have an overridden `outPath`.

Additionally, use `__spliced` to permit derivations to use the dummy as
an input.
2023-06-04 09:15:14 +02:00

18 lines
298 B
Nix

{ config, lib, pkgs, ... }:
with lib;
{
config = {
programs.autojump.enable = true;
test.stubs.autojump = {
buildScript = "mkdir -p $out/bin; touch $out/bin/autojump";
outPath = null;
};
nmt.script = ''
assertFileExists home-path/bin/autojump
'';
};
}