2024-07-31 13:51:40 +00:00
|
|
|
{
|
|
|
|
config,
|
|
|
|
lib,
|
|
|
|
pkgs,
|
2024-08-25 11:09:53 +00:00
|
|
|
wrapperManagerLib,
|
2024-07-31 13:51:40 +00:00
|
|
|
...
|
|
|
|
}:
|
2024-07-27 12:17:48 +00:00
|
|
|
|
|
|
|
{
|
2024-08-25 11:09:53 +00:00
|
|
|
build.isBinary = false;
|
|
|
|
|
2024-07-27 12:17:48 +00:00
|
|
|
wrappers.fastfetch = {
|
|
|
|
arg0 = lib.getExe' pkgs.fastfetch "fastfetch";
|
2024-07-31 13:51:40 +00:00
|
|
|
appendArgs = [
|
|
|
|
"--logo"
|
|
|
|
"Guix"
|
|
|
|
];
|
2024-07-27 13:17:01 +00:00
|
|
|
env.NO_COLOR.value = "1";
|
2024-07-27 12:17:48 +00:00
|
|
|
xdg.desktopEntry.enable = true;
|
|
|
|
};
|
|
|
|
|
2024-08-25 11:09:53 +00:00
|
|
|
environment.pathAdd = wrapperManagerLib.getBin (with pkgs; [
|
|
|
|
hello
|
|
|
|
]);
|
|
|
|
|
2024-07-27 12:17:48 +00:00
|
|
|
build.extraPassthru.tests = {
|
2024-07-31 13:51:40 +00:00
|
|
|
actuallyBuilt =
|
|
|
|
let
|
|
|
|
wrapper = config.build.toplevel;
|
|
|
|
in
|
|
|
|
pkgs.runCommand "wrapper-manager-fastfetch-actually-built" { } ''
|
|
|
|
[ -e "${wrapper}/share/applications/fastfetch.desktop" ] && [ -x "${wrapper}/bin/${config.wrappers.fastfetch.executableName}" ] && touch $out
|
|
|
|
'';
|
2024-07-27 12:17:48 +00:00
|
|
|
};
|
|
|
|
}
|