about summary refs log tree commit diff
path: root/pkgs/applications/misc/taskwarrior/unstable.nix
blob: a50654b28d250117600cc60d29b8f5a46917cdf5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
{ stdenv, fetchurl, cmake, lua5 }:

stdenv.mkDerivation {
  name = "task-warrior-2.0.0.beta4";

  src = fetchurl {
    url = http://www.taskwarrior.org/download/task-2.0.0.beta4.tar.gz;
    sha256 = "1c9n6b5ly3m5kminnsvqgmjxdkb68w4av9kdnh47dw4sj3gwrn1w";
  };

  NIX_LDFLAGS = "-ldl";

  buildNativeInputs = [ cmake ];
  buildInputs = [ lua5 ];

  crossAttrs = {
    preConfigure = ''
      export NIX_CROSS_LDFLAGS="$NIX_CROSS_LDFLAGS -ldl"
    '';
  };

  meta = {
    description = "Command-line todo list manager";
    homepage = http://taskwarrior.org/;
    license = "MIT";
  };
}