mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-24 07:53:19 +00:00
Merge pull request #86195 from adisbladis/fish-anypython
fish: Patch __fish_anypython function to return build input python3
This commit is contained in:
commit
75717901da
@ -148,6 +148,13 @@ let
|
||||
sed -i "s|/usr/local/sbin /sbin /usr/sbin||" \
|
||||
$out/share/fish/completions/{sudo.fish,doas.fish}
|
||||
|
||||
cat > $out/share/fish/functions/__fish_anypython.fish <<EOF
|
||||
function __fish_anypython
|
||||
echo ${python3.interpreter}
|
||||
return 0
|
||||
end
|
||||
EOF
|
||||
|
||||
'' + optionalString stdenv.isLinux ''
|
||||
sed -e "s| ul| ${utillinux}/bin/ul|" \
|
||||
-i "$out/share/fish/functions/__fish_print_help.fish"
|
||||
|
Loading…
Reference in New Issue
Block a user