mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-28 06:14:26 +03:00
ddgr: 1.6 -> 1.7
This commit is contained in:
parent
eae0eb0892
commit
b984c90f48
@ -1,20 +1,26 @@
|
|||||||
{stdenv, fetchFromGitHub, python3}:
|
{stdenv, fetchFromGitHub, python3}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
version = "1.6";
|
version = "1.7";
|
||||||
pname = "ddgr";
|
pname = "ddgr";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "jarun";
|
owner = "jarun";
|
||||||
repo = "ddgr";
|
repo = "ddgr";
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
sha256 = "04ybbjsf9hpn2p5cjjm15cwvv0mwrmdi19iifrym6ps3rmll0p3c";
|
sha256 = "0kcl8z9w8iwn3pxay1pfahhw6vs2l1dp60yfv3i19in4ac9va7m0";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [ python3 ];
|
buildInputs = [ python3 ];
|
||||||
|
|
||||||
makeFlags = "PREFIX=$(out)";
|
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 = ''
|
postInstall = ''
|
||||||
mkdir -p "$out/share/bash-completion/completions/"
|
mkdir -p "$out/share/bash-completion/completions/"
|
||||||
cp "auto-completion/bash/ddgr-completion.bash" "$out/share/bash-completion/completions/"
|
cp "auto-completion/bash/ddgr-completion.bash" "$out/share/bash-completion/completions/"
|
||||||
|
Loading…
Reference in New Issue
Block a user