nixpkgs-suyu/pkgs/applications/misc/tasknc/default.nix

44 lines
1.1 KiB
Nix
Raw Normal View History

{ lib, stdenv, fetchFromGitHub, makeWrapper, perl, ncurses5, taskwarrior }:
2015-03-07 15:48:35 +01:00
stdenv.mkDerivation rec {
version = "2020-12-17";
pname = "tasknc";
2015-03-07 15:48:35 +01:00
src = fetchFromGitHub {
owner = "lharding";
repo = "tasknc";
rev = "a182661fbcc097a933d5e8cce3922eb1734a563e";
sha256 = "0jrv2k1yizfdjndbl06lmy2bb62ky2rjdk308967j31c5kqqnw56";
2015-03-07 15:48:35 +01:00
};
nativeBuildInputs = [
makeWrapper
perl # For generating the man pages with pod2man
];
2018-06-20 23:18:14 +02:00
buildInputs = [ ncurses5 ];
hardeningDisable = [ "format" ];
2016-02-08 01:21:29 +01:00
buildFlags = [ "VERSION=${version}" ];
2015-03-07 15:48:35 +01: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 15:48:35 +01:00
'';
meta = with 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 16:47:10 +02:00
license = licenses.mit;
2015-03-07 15:48:35 +01:00
};
}