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

22 lines
534 B
Nix
Raw Normal View History

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