forked from mirrors/nixpkgs
98a2276637
"`^` as a redirection deprecated and will be removed in the future." (see the changelog, under the 3.0b1 release) The latest fish beta release (3.1b1 as of time of writing) errors when encountering `^&1` (though the fact it is now an error has yet to be documented by them). The plugin was updated last year to account for this change, and with the "imminent" release of fish-shell v3.1, this should be fixed.
32 lines
937 B
Nix
32 lines
937 B
Nix
{ stdenv, fetchFromGitHub, gnused, bash, coreutils }:
|
|
|
|
stdenv.mkDerivation {
|
|
pname = "fish-foreign-env";
|
|
version = "git-20200209";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "oh-my-fish";
|
|
repo = "plugin-foreign-env";
|
|
rev = "dddd9213272a0ab848d474d0cbde12ad034e65bc";
|
|
sha256 = "00xqlyl3lffc5l0viin1nyp819wf81fncqyz87jx8ljjdhilmgbs";
|
|
};
|
|
|
|
installPhase = ''
|
|
mkdir -p $out/share/fish-foreign-env/functions/
|
|
cp functions/* $out/share/fish-foreign-env/functions/
|
|
sed -e "s|sed|${gnused}/bin/sed|" \
|
|
-e "s|bash|${bash}/bin/bash|" \
|
|
-e "s|\| tr|\| ${coreutils}/bin/tr|" \
|
|
-i $out/share/fish-foreign-env/functions/*
|
|
'';
|
|
|
|
patches = [ ./suppress-harmless-warnings.patch ];
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "A foreign environment interface for Fish shell";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ jgillich ];
|
|
platforms = with platforms; unix;
|
|
};
|
|
}
|