taskwarrior: 2.5.2 -> 2.5.3 (#113056)
This commit is contained in:
parent
c89117997d
commit
4abe6c75ff
@ -1,19 +1,37 @@
|
|||||||
{ lib, stdenv, fetchFromGitHub, cmake, libuuid, gnutls }:
|
{ lib, stdenv, fetchurl, cmake, libuuid, gnutls, python3, bash }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "taskwarrior";
|
pname = "taskwarrior";
|
||||||
version = "2.5.2";
|
version = "2.5.3";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
srcs = [
|
||||||
owner = "GothenburgBitFactory";
|
(fetchurl {
|
||||||
repo = "taskwarrior";
|
url = " https://github.com/GothenburgBitFactory/taskwarrior/releases/download/v${version}/${sourceRoot}.tar.gz";
|
||||||
rev = "v${version}";
|
sha256 = "0fwnxshhlha21hlgg5z1ad01w13zm1hlmncs274y5n8i15gdfhvj";
|
||||||
sha256 = "0jv5b56v75qhdqbrfsddfwizmbizcsv3mn8gp92nckwlx9hrk5id";
|
})
|
||||||
fetchSubmodules = true;
|
(fetchurl {
|
||||||
};
|
url = "https://github.com/GothenburgBitFactory/taskwarrior/releases/download/v${version}/tests-${version}.tar.gz";
|
||||||
|
sha256 = "165xmf9h6rb7l6l9nlyygj0mx9bi1zyd78z0lrl3nadhmgzggv0b";
|
||||||
|
})
|
||||||
|
];
|
||||||
|
|
||||||
|
sourceRoot = "task-${version}";
|
||||||
|
|
||||||
|
postUnpack = ''
|
||||||
|
mv test ${sourceRoot}
|
||||||
|
'';
|
||||||
|
|
||||||
nativeBuildInputs = [ cmake libuuid gnutls ];
|
nativeBuildInputs = [ cmake libuuid gnutls ];
|
||||||
|
|
||||||
|
doCheck = true;
|
||||||
|
preCheck = ''
|
||||||
|
find test -type f -exec sed -i \
|
||||||
|
-e "s|/usr/bin/env python3|${python3.interpreter}|" \
|
||||||
|
-e "s|/usr/bin/env bash|${bash}/bin/bash|" \
|
||||||
|
{} +
|
||||||
|
'';
|
||||||
|
checkTarget = "test";
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
mkdir -p "$out/share/bash-completion/completions"
|
mkdir -p "$out/share/bash-completion/completions"
|
||||||
ln -s "../../doc/task/scripts/bash/task.sh" "$out/share/bash-completion/completions/task.bash"
|
ln -s "../../doc/task/scripts/bash/task.sh" "$out/share/bash-completion/completions/task.bash"
|
||||||
@ -28,6 +46,6 @@ stdenv.mkDerivation rec {
|
|||||||
homepage = "https://taskwarrior.org";
|
homepage = "https://taskwarrior.org";
|
||||||
license = licenses.mit;
|
license = licenses.mit;
|
||||||
maintainers = with maintainers; [ marcweber ];
|
maintainers = with maintainers; [ marcweber ];
|
||||||
platforms = platforms.linux ++ platforms.darwin;
|
platforms = platforms.unix;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user