From 37a8943f86ea93a1378acd7171da1766c1026528 Mon Sep 17 00:00:00 2001 From: Cameron Brown Date: Sat, 16 May 2026 23:57:12 -0400 Subject: [PATCH] taskopen: 1.1.5 -> 2.0.3 --- pkgs/by-name/ta/taskopen/package.nix | 35 +++++++++------------------- 1 file changed, 11 insertions(+), 24 deletions(-) diff --git a/pkgs/by-name/ta/taskopen/package.nix b/pkgs/by-name/ta/taskopen/package.nix index b46f3d98ec35..9df6743135f3 100644 --- a/pkgs/by-name/ta/taskopen/package.nix +++ b/pkgs/by-name/ta/taskopen/package.nix @@ -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 ]; };