2020-12-29 08:44:18 +00:00
|
|
|
{ lib, buildFishPlugin, fetchFromGitHub, gnused, bash, coreutils }:
|
2015-12-25 00:17:42 +00:00
|
|
|
|
2020-12-29 08:44:18 +00:00
|
|
|
buildFishPlugin {
|
|
|
|
pname = "foreign-env";
|
2020-02-10 02:37:29 +00:00
|
|
|
version = "git-20200209";
|
2015-12-25 00:17:42 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "oh-my-fish";
|
|
|
|
repo = "plugin-foreign-env";
|
2020-02-10 02:37:29 +00:00
|
|
|
rev = "dddd9213272a0ab848d474d0cbde12ad034e65bc";
|
|
|
|
sha256 = "00xqlyl3lffc5l0viin1nyp819wf81fncqyz87jx8ljjdhilmgbs";
|
2015-12-25 00:17:42 +00:00
|
|
|
};
|
|
|
|
|
2020-12-29 08:44:18 +00:00
|
|
|
patches = [ ./suppress-harmless-warnings.patch ];
|
|
|
|
|
|
|
|
preInstall = ''
|
2015-12-25 00:17:42 +00:00
|
|
|
sed -e "s|sed|${gnused}/bin/sed|" \
|
|
|
|
-e "s|bash|${bash}/bin/bash|" \
|
|
|
|
-e "s|\| tr|\| ${coreutils}/bin/tr|" \
|
2020-12-29 08:44:18 +00:00
|
|
|
-i functions/*
|
2015-12-25 00:17:42 +00:00
|
|
|
'';
|
|
|
|
|
2020-12-29 08:44:18 +00:00
|
|
|
meta = with lib; {
|
2015-12-25 00:17:42 +00:00
|
|
|
description = "A foreign environment interface for Fish shell";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ jgillich ];
|
2016-08-02 18:50:55 +01:00
|
|
|
platforms = with platforms; unix;
|
2015-12-25 00:17:42 +00:00
|
|
|
};
|
|
|
|
}
|