2015-12-25 00:17:42 +00:00
|
|
|
{ stdenv, fetchFromGitHub, gnused, bash, coreutils }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "fish-foreign-env-${version}";
|
2017-03-25 02:50:30 +00:00
|
|
|
version = "git-20170324";
|
2015-12-25 00:17:42 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "oh-my-fish";
|
|
|
|
repo = "plugin-foreign-env";
|
2017-03-25 02:50:30 +00:00
|
|
|
rev = "baefbd690f0b52cb8746f3e64b326d82834d07c5";
|
|
|
|
sha256 = "0lwp6hy3kfk7xfx4xvbk1ir8zkzm7gfjbm4bf6xg1y6iw9jq9dnl";
|
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
|
|
|
};
|
|
|
|
}
|