2015-12-25 01:17:42 +01:00
|
|
|
{ stdenv, fetchFromGitHub, gnused, bash, coreutils }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "fish-foreign-env-${version}";
|
2017-03-25 03:50:30 +01:00
|
|
|
version = "git-20170324";
|
2015-12-25 01:17:42 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "oh-my-fish";
|
|
|
|
repo = "plugin-foreign-env";
|
2017-03-25 03:50:30 +01:00
|
|
|
rev = "baefbd690f0b52cb8746f3e64b326d82834d07c5";
|
|
|
|
sha256 = "0lwp6hy3kfk7xfx4xvbk1ir8zkzm7gfjbm4bf6xg1y6iw9jq9dnl";
|
2015-12-25 01:17:42 +01:00
|
|
|
};
|
|
|
|
|
2017-07-08 04:27:18 +02:00
|
|
|
installPhase = ''
|
2015-12-25 01:17:42 +01:00
|
|
|
mkdir -p $out/share/fish-foreign-env/functions/
|
2017-07-08 04:27:18 +02:00
|
|
|
cp functions/* $out/share/fish-foreign-env/functions/
|
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|" \
|
|
|
|
-i $out/share/fish-foreign-env/functions/*
|
|
|
|
'';
|
|
|
|
|
2017-11-14 05:21:45 +01:00
|
|
|
patches = [ ./suppress-harmless-warnings.patch ];
|
2017-07-08 04:27:18 +02:00
|
|
|
|
2015-12-25 01:17:42 +01:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
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
|
|
|
};
|
|
|
|
}
|