nixpkgs/pkgs/shells/fish/fish-foreign-env/default.nix
Cole Helbling 98a2276637
fish-foreign-env: git-20170324 -> git-20200209
"`^` 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.
2020-02-09 19:01:14 -08:00

31 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;
};
}