mirror of
https://github.com/nix-community/home-manager
synced 2024-12-19 01:23:56 +00:00
221056c59f
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.
18 lines
298 B
Nix
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
|
|
'';
|
|
};
|
|
}
|