nix-module-wrapper-manager-fds/tests/configs/wrapper-neofetch.nix

33 lines
595 B
Nix
Raw Permalink Normal View History

2024-07-31 13:51:40 +00:00
{
config,
lib,
pkgs,
yourMomName,
...
}:
{
wrappers.neofetch = {
arg0 = lib.getExe' pkgs.neofetch "neofetch";
executableName = yourMomName;
appendArgs = [
2024-07-31 13:51:40 +00:00
"--ascii_distro"
"guix"
"--title_fqdn"
"off"
"--os_arch"
"off"
];
};
build.extraPassthru.wrapperManagerTests = {
2024-07-31 13:51:40 +00:00
actuallyBuilt =
let
wrapper = config.build.toplevel;
in
pkgs.runCommand "wrapper-manager-neofetch-actually-built" { } ''
[ -x "${wrapper}/bin/${config.wrappers.neofetch.executableName}" ] && touch $out
2024-07-31 13:51:40 +00:00
'';
};
}