mirror of
https://github.com/foo-dogsquared/nix-module-wrapper-manager-fds.git
synced 2025-01-31 04:58:17 +00:00
Gabriel Arazas
dd389a65ec
Now we have solved the problem of requiring separate options by consolidating them together. This shouldn't be that breaking of a change.
19 lines
548 B
Nix
19 lines
548 B
Nix
{ config, lib, pkgs, ... }:
|
|
|
|
{
|
|
wrappers.fastfetch = {
|
|
arg0 = lib.getExe' pkgs.fastfetch "fastfetch";
|
|
appendArgs = [ "--logo" "Guix" ];
|
|
env.NO_COLOR.value = "1";
|
|
xdg.desktopEntry.enable = true;
|
|
};
|
|
|
|
build.extraPassthru.tests = {
|
|
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
|
|
'';
|
|
};
|
|
}
|