diff options
Diffstat (limited to 'overrides/fish')
-rw-r--r-- | overrides/fish/default.nix | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/overrides/fish/default.nix b/overrides/fish/default.nix new file mode 100644 index 00000000..c8d8f7c8 --- /dev/null +++ b/overrides/fish/default.nix @@ -0,0 +1,31 @@ +{ stdenv, fetchurl, autoconf, ncurses, groff, makeWrapper, pythonPackages }: + +stdenv.mkDerivation rec { + name = "fish-${version}"; + version = "2.0.0"; + + buildInputs = [ + autoconf ncurses makeWrapper pythonPackages.wrapPython pythonPackages.python + ]; + + pythonPath = [ pythonPackages.curses ]; + + enableParallelBuilding = true; + + preConfigure = '' + autoconf + sed -i 's/\<which\>/type -P/g' configure + ''; + + postFixup = '' + wrapPythonPrograms + + sed -i 's|nroff|${groff}/bin/nroff|g' \ + "$out/share/fish/functions/__fish_print_help.fish" + ''; + + src = fetchurl { + url = "http://fishshell.com/files/${version}/fish.tar.gz"; + sha1 = "2d28553e2ff975f8e5fed6b266f7a940493b6636"; + }; +} |