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

35 lines
1,020 B
Nix
Raw Normal View History

{ fetchurl, lib, stdenv, makeWrapper, which, perl, perlPackages }:
2019-04-24 18:21:52 +02:00
2019-08-13 23:52:01 +02:00
stdenv.mkDerivation {
2019-04-24 18:21:52 +02:00
name = "taskopen-1.1.4";
src = fetchurl {
url = "https://github.com/ValiValpas/taskopen/archive/v1.1.4.tar.gz";
sha256 = "774dd89f5c92462098dd6227e181268e5ec9930bbc569f25784000df185c71ba";
};
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"
'';
meta = with lib; {
2019-04-24 18:21:52 +02:00
description = "Script for taking notes and open urls with taskwarrior";
homepage = "https://github.com/ValiValpas/taskopen";
2019-04-24 18:21:52 +02:00
platforms = platforms.linux;
2021-01-15 06:42:41 +01:00
license = lib.licenses.free ;
2019-04-24 18:21:52 +02:00
maintainers = [ maintainers.winpat ];
};
}