1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-11-01 08:49:44 +01:00
home-manager/tests/modules/programs/autojump/default-settings.nix
Naïm Favier 1f5735f335
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.

(cherry picked from commit 221056c59f)
2023-09-19 09:22:19 +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
'';
};
}