taskopen: 1.1.5 -> 2.0.3 (#521152)

This commit is contained in:
Peder Bergebakken Sundt
2026-05-19 13:02:52 +00:00
committed by GitHub
+11 -24
View File
@@ -6,49 +6,36 @@
which,
perl,
perlPackages,
buildNimPackage,
git,
}:
stdenv.mkDerivation (finalAttrs: {
buildNimPackage (finalAttrs: {
pname = "taskopen";
version = "1.1.5";
version = "2.0.3";
src = fetchFromGitHub {
owner = "ValiValpas";
owner = "jschlatow";
repo = "taskopen";
rev = "v${finalAttrs.version}";
sha256 = "sha256-/xf7Ph2KKiZ5lgLKk95nCgw/z9wIBmuWf3QGaNebgHg=";
sha256 = "sha256-0SAiSaN9V1JYnyJsWda6unqUlyXRL8y8JHXP4VNAFhM=";
};
postPatch = ''
# 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
'';
nativeBuildInputs = [ makeWrapper ];
buildInputs = [
which
]
++ (with perlPackages; [
JSON
perl
]);
buildPhase = ''
export HOME=$(pwd)
'';
installPhase = ''
make PREFIX=$out
make PREFIX=$out install
'';
postFixup = ''
wrapProgram $out/bin/taskopen \
--set PERL5LIB "$PERL5LIB"
'';
meta = {
description = "Script for taking notes and open urls with taskwarrior";
mainProgram = "taskopen";
homepage = "https://github.com/ValiValpas/taskopen";
platforms = lib.platforms.linux;
platforms = lib.platforms.all;
license = lib.licenses.gpl2Plus;
maintainers = [ lib.maintainers.winpat ];
};