mirror of
https://github.com/nix-community/home-manager
synced 2024-11-10 21:29:48 +01:00
1f5735f335
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
)
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
|
|
'';
|
|
};
|
|
}
|