2015-12-25 00:17:42 +00:00
|
|
|
{ stdenv, fetchFromGitHub, gnused, bash, coreutils }:
|
|
|
|
|
2019-08-13 22:52:01 +01:00
|
|
|
stdenv.mkDerivation {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "fish-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
|
|
|
};
|
|
|
|
|
2017-07-08 03:27:18 +01:00
|
|
|
installPhase = ''
|
2015-12-25 00:17:42 +00:00
|
|
|
mkdir -p $out/share/fish-foreign-env/functions/
|
2017-07-08 03:27:18 +01:00
|
|
|
cp functions/* $out/share/fish-foreign-env/functions/
|
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|" \
|
|
|
|
-i $out/share/fish-foreign-env/functions/*
|
|
|
|
'';
|
|
|
|
|
2017-11-14 04:21:45 +00:00
|
|
|
patches = [ ./suppress-harmless-warnings.patch ];
|
2017-07-08 03:27:18 +01:00
|
|
|
|
2015-12-25 00:17:42 +00:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
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
|
|
|
};
|
|
|
|
}
|