2021-01-11 07:54:33 +00:00
|
|
|
{ fetchurl, lib, stdenv, makeWrapper, which, perl, perlPackages }:
|
2019-04-24 16:21:52 +00:00
|
|
|
|
2019-08-13 21:52:01 +00:00
|
|
|
stdenv.mkDerivation {
|
2021-08-22 04:15:08 +00:00
|
|
|
name = "taskopen-1.1.5";
|
2019-04-24 16:21:52 +00:00
|
|
|
src = fetchurl {
|
2021-08-22 04:15:08 +00:00
|
|
|
url = "https://github.com/ValiValpas/taskopen/archive/v1.1.5.tar.gz";
|
|
|
|
sha256 = "sha256-7fncdt1wCJ4zNLrCf93yRFD8Q4XQ3DCJ1+zJg9Gcl3w=";
|
2019-04-24 16:21:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
buildInputs = [ which perl ] ++ (with perlPackages; [ JSON ]);
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
# We don't need a DESTDIR and an empty string results in an absolute path
|
|
|
|
# (due to the trailing slash) which breaks the build.
|
|
|
|
sed 's|$(DESTDIR)/||' -i Makefile
|
|
|
|
|
|
|
|
make PREFIX=$out
|
|
|
|
make PREFIX=$out install
|
|
|
|
'';
|
|
|
|
|
|
|
|
postFixup = ''
|
|
|
|
wrapProgram $out/bin/taskopen \
|
|
|
|
--set PERL5LIB "$PERL5LIB"
|
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2019-04-24 16:21:52 +00:00
|
|
|
description = "Script for taking notes and open urls with taskwarrior";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/ValiValpas/taskopen";
|
2019-04-24 16:21:52 +00:00
|
|
|
platforms = platforms.linux;
|
2021-01-15 05:42:41 +00:00
|
|
|
license = lib.licenses.free ;
|
2019-04-24 16:21:52 +00:00
|
|
|
maintainers = [ maintainers.winpat ];
|
|
|
|
};
|
|
|
|
}
|