mirror of
https://github.com/nix-community/home-manager
synced 2024-09-12 06:16:33 +02:00
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.
19 lines
298 B
Nix
19 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
|
|
'';
|
|
};
|
|
}
|