diff options
author | Markus Hauck <markus1189@gmail.com> | 2019-09-09 16:31:57 +0200 |
---|---|---|
committer | Markus Hauck <markus1189@gmail.com> | 2019-09-09 16:31:57 +0200 |
commit | b984c90f48dc6ddb1a282b8b68e5fe60b340bade (patch) | |
tree | 313a17207702688691b02687900469e4496a5f24 /pkgs/applications/misc/ddgr | |
parent | eae0eb08920693f14a8fffe3c287fad4c9bd5297 (diff) |
ddgr: 1.6 -> 1.7
Diffstat (limited to 'pkgs/applications/misc/ddgr')
-rw-r--r-- | pkgs/applications/misc/ddgr/default.nix | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/pkgs/applications/misc/ddgr/default.nix b/pkgs/applications/misc/ddgr/default.nix index 3cbb091a4e215..9b877c2594b3e 100644 --- a/pkgs/applications/misc/ddgr/default.nix +++ b/pkgs/applications/misc/ddgr/default.nix @@ -1,20 +1,26 @@ {stdenv, fetchFromGitHub, python3}: stdenv.mkDerivation rec { - version = "1.6"; + version = "1.7"; pname = "ddgr"; src = fetchFromGitHub { owner = "jarun"; repo = "ddgr"; rev = "v${version}"; - sha256 = "04ybbjsf9hpn2p5cjjm15cwvv0mwrmdi19iifrym6ps3rmll0p3c"; + sha256 = "0kcl8z9w8iwn3pxay1pfahhw6vs2l1dp60yfv3i19in4ac9va7m0"; }; buildInputs = [ python3 ]; makeFlags = "PREFIX=$(out)"; + preBuild = '' + # Version 1.7 was released as 1.6 + # https://github.com/jarun/ddgr/pull/95 + sed -i "s/_VERSION_ = '1.6'/_VERSION_ = '1.7'/" ddgr + ''; + postInstall = '' mkdir -p "$out/share/bash-completion/completions/" cp "auto-completion/bash/ddgr-completion.bash" "$out/share/bash-completion/completions/" |