1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/pkgs/applications/misc/taskwarrior/default.nix
Bjørn Forsman 02458a939a taskwarrior: enable bash completion
By adding the missing link between the (already installed) completion
script and $out/etc/bash_completion.d/.
2015-01-18 14:14:36 +01:00

29 lines
787 B
Nix

{ stdenv, fetchurl, cmake, libuuid, gnutls }:
stdenv.mkDerivation rec {
name = "taskwarrior-${version}";
version = "2.3.0";
enableParallelBuilding = true;
src = fetchurl {
url = "http://www.taskwarrior.org/download/task-${version}.tar.gz";
sha256 = "0wxcfq0n96vmcbwrlk2x377k8cc5k4i64ca6p02y74g6168ji6ib";
};
nativeBuildInputs = [ cmake libuuid gnutls ];
postInstall = ''
mkdir -p "$out/etc/bash_completion.d"
ln -s "../../share/doc/task/scripts/bash/task.sh" "$out/etc/bash_completion.d/"
'';
meta = {
description = "GTD (getting things done) implementation";
homepage = http://taskwarrior.org;
license = stdenv.lib.licenses.mit;
maintainers = [stdenv.lib.maintainers.marcweber];
platforms = stdenv.lib.platforms.linux;
};
}