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