home/fish: simplify getmnter function

This commit is contained in:
Guanran Wang 2024-06-15 01:59:56 +08:00
parent acc7057790
commit 8a67c3b179
Signed by: nyancat
GPG key ID: 91F97D9ED12639CF

View file

@ -62,7 +62,6 @@
jq = lib.getExe pkgs.jq;
nix = lib.getExe pkgs.nix;
curl = lib.getExe pkgs.curl;
awk = lib.getExe pkgs.gawk;
in {
"pb" = ''
${jq} -Rns '{text: inputs}' | \
@ -72,8 +71,7 @@
"getmnter" = ''
${nix} eval nixpkgs#{$argv}.meta.maintainers --json | \
${jq} '.[].github' -r | \
${awk} '{ print "@" $1 }'
${jq} '.[].github | "@" + .' -r
'';
};
}