@@ -1,7 +1,7 @@
1{ fetchurl, stdenv, python, bash }:
1{ fetchurl, stdenv, python, bash }:
4− version = "21.6.9";
4+ version = "22.2.4";
6 stdenv.mkDerivation rec {
6 stdenv.mkDerivation rec {
7 name = "autojump-${version}";
7 name = "autojump-${version}";
@@ -9,21 +9,18 @@ in
9 src = fetchurl {
9 src = fetchurl {
10 url = "http://github.com/joelthelion/autojump/archive/release-v${version}.tar.gz";
10 url = "http://github.com/joelthelion/autojump/archive/release-v${version}.tar.gz";
11 name = "autojump-${version}.tar.gz";
11 name = "autojump-${version}.tar.gz";
12− sha256 = "0js6jp9l83zxhd9bn8hjn4yf8gydnldrlmafgvlg3rd4i1v82649";
12+ sha256 = "816badb0721f735e2b86bdfa8b333112f3867343c7c2263c569f75b4ec91f475";
15 buildInputs = [ python bash ];
15 buildInputs = [ python bash ];
16 dontBuild = true;
16 dontBuild = true;
18 installPhase = ''
18 installPhase = ''
19− # don't check shell support (we're running with bash anyway)
19+ python ./install.py -d $out -p ""
20− sed -i -e 150,153d install.sh
22− bash ./install.sh -d $out -p ""
23 chmod +x $out/etc/profile.d/*
20 chmod +x $out/etc/profile.d/*
25 mkdir -p "$out/etc/bash_completion.d"
22 mkdir -p "$out/etc/bash_completion.d"
26− cp -v $out/etc/profile.d/autojump.bash "$out/etc/bash_completion.d"
23+ cp -v $out/share/autojump/autojump.bash "$out/etc/bash_completion.d"
28 # FIXME: What's the right place for `autojump.zsh'?
25 # FIXME: What's the right place for `autojump.zsh'?