nixpkgs/pkgs/shells/fish/default.nix

35 lines
951 B
Nix
Raw Normal View History

{ stdenv, fetchurl, autoconf, ncurses, which, groff, gettext }:
2013-06-04 11:20:30 +02:00
stdenv.mkDerivation rec {
2013-10-30 14:59:38 +01:00
name = "fish-2.1.0";
2013-06-04 11:20:30 +02:00
src = fetchurl {
2013-10-30 14:59:38 +01:00
url = http://fishshell.com/files/2.1.0/fish-2.1.0.tar.gz;
sha1 = "b1764cba540055cb8e2a96a7ea4c844b04a32522";
2013-06-04 11:20:30 +02:00
};
nativeBuildInputs = [ autoconf ];
buildInputs = [ ncurses which ];
preConfigure = ''
autoconf
'';
postInstall = ''
sed -i "s|which |command -v |" "$out/share/fish/functions/type.fish"
sed -i "s|nroff |${groff}/bin/nroff |" "$out/share/fish/functions/__fish_print_help.fish"
sed -e "s|gettext |${gettext}/bin/gettext |" \
-e "s|which |command -v |" \
-i "$out/share/fish/functions/_.fish"
'';
2013-09-25 22:08:40 +02:00
meta = with stdenv.lib; {
description = "Smart and user-friendly command line shell";
homepage = http://fishshell.com/;
license = licenses.gpl2;
platforms = platforms.linux;
2013-10-30 14:59:38 +01:00
maintainers = [ stdenv.lib.maintainers.ocharles ];
2013-06-04 11:20:30 +02:00
};
2013-10-30 14:59:38 +01:00
}