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/tasknc/default.nix

44 lines
1.1 KiB
Nix
Raw Normal View History

2018-06-20 22:18:14 +01:00
{ stdenv, fetchFromGitHub, makeWrapper, perl, ncurses5, taskwarrior }:
2015-03-07 14:48:35 +00:00
stdenv.mkDerivation rec {
version = "2017-05-15";
pname = "tasknc";
2015-03-07 14:48:35 +00:00
src = fetchFromGitHub {
owner = "lharding";
repo = "tasknc";
rev = "c41d0240e9b848e432f01de735f28de93b934ae7";
sha256 = "0f7l7fy06p33vw6f6sjnjxfhw951664pmwhjl573jvmh6gi2h1yr";
2015-03-07 14:48:35 +00:00
};
nativeBuildInputs = [
makeWrapper
perl # For generating the man pages with pod2man
];
2018-06-20 22:18:14 +01:00
buildInputs = [ ncurses5 ];
hardeningDisable = [ "format" ];
2016-02-08 00:21:29 +00:00
buildFlags = [ "VERSION=${version}" ];
2015-03-07 14:48:35 +00:00
installPhase = ''
mkdir -p $out/bin/
mkdir -p $out/share/man/man1
mkdir -p $out/share/tasknc
DESTDIR=$out PREFIX= MANPREFIX=/share/man make install
wrapProgram $out/bin/tasknc --prefix PATH : ${taskwarrior}/bin
2015-03-07 14:48:35 +00:00
'';
meta = with stdenv.lib; {
homepage = https://github.com/lharding/tasknc;
description = "A ncurses wrapper around taskwarrior";
maintainers = with maintainers; [ matthiasbeyer infinisil ];
platforms = platforms.linux; # Cannot test others
2018-08-04 15:47:10 +01:00
license = licenses.mit;
2015-03-07 14:48:35 +00:00
};
}