home/fish: simplify getmnter function
This commit is contained in:
parent
acc7057790
commit
8a67c3b179
1 changed files with 1 additions and 3 deletions
|
@ -62,7 +62,6 @@
|
||||||
jq = lib.getExe pkgs.jq;
|
jq = lib.getExe pkgs.jq;
|
||||||
nix = lib.getExe pkgs.nix;
|
nix = lib.getExe pkgs.nix;
|
||||||
curl = lib.getExe pkgs.curl;
|
curl = lib.getExe pkgs.curl;
|
||||||
awk = lib.getExe pkgs.gawk;
|
|
||||||
in {
|
in {
|
||||||
"pb" = ''
|
"pb" = ''
|
||||||
${jq} -Rns '{text: inputs}' | \
|
${jq} -Rns '{text: inputs}' | \
|
||||||
|
@ -72,8 +71,7 @@
|
||||||
|
|
||||||
"getmnter" = ''
|
"getmnter" = ''
|
||||||
${nix} eval nixpkgs#{$argv}.meta.maintainers --json | \
|
${nix} eval nixpkgs#{$argv}.meta.maintainers --json | \
|
||||||
${jq} '.[].github' -r | \
|
${jq} '.[].github | "@" + .' -r
|
||||||
${awk} '{ print "@" $1 }'
|
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue