1 { lib, stdenv, fetchurl, cmake, libuuid, gnutls, makeWrapper, nixosTests }:
3 stdenv.mkDerivation rec {
8 url = "http://www.taskwarrior.org/download/taskd-${version}.tar.gz";
9 sha256 = "1d110q9vw8g5syzihxymik7hd27z1592wkpz55kya6lphzk8i13v";
13 pkipath=$out/share/taskd/pki
16 echo "patching paths in pki/generate"
17 sed -i "s#^\.#$pkipath#" $pkipath/generate
18 for f in $pkipath/generate* ;do
22 -e 's/which/type -p/g' \
23 -e 's#^\. ./vars#if test -e ./vars;then . ./vars; else echo "cannot find ./vars - copy the template from '$pkipath'/vars into the working directory";exit 1; fi#' $f
26 makeWrapper $pkipath/$i $out/bin/taskd-pki-$i \
27 --prefix PATH : ${lib.makeBinPath [ gnutls ]}
31 buildInputs = [ libuuid gnutls ];
32 nativeBuildInputs = [ cmake makeWrapper ];
34 passthru.tests = { inherit (nixosTests) taskserver; };
37 description = "Server for synchronising Taskwarrior clients";
38 homepage = "https://taskwarrior.org";
39 license = lib.licenses.mit;
40 platforms = lib.platforms.linux;
41 maintainers = with lib.maintainers; [ matthiasbeyer makefu ];