1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-04 03:25:02 +00:00
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 10:20:30 +01:00
stdenv.mkDerivation rec {
2013-10-30 13:59:38 +00:00
name = "fish-2.1.0";
2013-06-04 10:20:30 +01:00
src = fetchurl {
2013-10-30 13:59:38 +00:00
url = http://fishshell.com/files/2.1.0/fish-2.1.0.tar.gz;
sha1 = "b1764cba540055cb8e2a96a7ea4c844b04a32522";
2013-06-04 10:20:30 +01: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 21:08:40 +01: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 13:59:38 +00:00
maintainers = [ stdenv.lib.maintainers.ocharles ];
2013-06-04 10:20:30 +01:00
};
2013-10-30 13:59:38 +00:00
}