mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-21 13:10:33 +00:00
ddgr: 1.8 -> 1.8.1
This commit is contained in:
parent
34cc6678d3
commit
c5afe415a7
|
@ -1,14 +1,14 @@
|
||||||
{ stdenv, fetchFromGitHub, python3, installShellFiles }:
|
{ stdenv, fetchFromGitHub, python3, installShellFiles }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
version = "1.8";
|
version = "1.8.1";
|
||||||
pname = "ddgr";
|
pname = "ddgr";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "jarun";
|
owner = "jarun";
|
||||||
repo = "ddgr";
|
repo = "ddgr";
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
sha256 = "1cyaindcg2vc3ij0p6b35inr01c6ys04izxsn1h70ixhsz46qg8z";
|
sha256 = "0668wzh1gqin0xscy3fly9hz370n2ny175f3kya9bsld0x0jkd5p";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ installShellFiles ];
|
nativeBuildInputs = [ installShellFiles ];
|
||||||
|
@ -17,11 +17,6 @@ stdenv.mkDerivation rec {
|
||||||
|
|
||||||
makeFlags = [ "PREFIX=$(out)" ];
|
makeFlags = [ "PREFIX=$(out)" ];
|
||||||
|
|
||||||
# Version 1.8 was released as 1.7
|
|
||||||
postPatch = ''
|
|
||||||
substituteInPlace ddgr --replace "_VERSION_ = '1.7'" "_VERSION_ = '${version}'"
|
|
||||||
'';
|
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
installShellCompletion --bash --name ddgr.bash auto-completion/bash/ddgr-completion.bash
|
installShellCompletion --bash --name ddgr.bash auto-completion/bash/ddgr-completion.bash
|
||||||
installShellCompletion --fish auto-completion/fish/ddgr.fish
|
installShellCompletion --fish auto-completion/fish/ddgr.fish
|
||||||
|
|
Loading…
Reference in a new issue