blob: 7beca2109ea6d3d3d651f559c7c76db31cb7c3b6 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
{ stdenv, fetchurl, autoconf, ncurses, which, groff, gettext }:
stdenv.mkDerivation rec {
name = "fish-2.0.0";
src = fetchurl {
url = http://fishshell.com/files/2.0.0/fish-2.0.0.tar.gz;
sha1 = "2d28553e2ff975f8e5fed6b266f7a940493b6636";
};
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"
'';
meta = with stdenv.lib; {
description = "Smart and user-friendly command line shell";
homepage = http://fishshell.com/;
license = licenses.gpl2;
platforms = platforms.linux;
};
}
|