diff options
author | Patrick Winter <patrick.winter@adfinis-sygroup.ch> | 2019-04-24 18:21:52 +0200 |
---|---|---|
committer | Patrick Winter <patrick.winter@adfinis-sygroup.ch> | 2019-04-24 18:30:36 +0200 |
commit | 0553c30ff0f20660b6062d3144b5254ae42bf48a (patch) | |
tree | 8f2608a77fe4e680ac0cfe47300052f3a597e6c8 /pkgs/applications/misc/taskopen | |
parent | 685963020630f49d7cbf59b067f0fce9ecdeac86 (diff) | |
download | nixlib-0553c30ff0f20660b6062d3144b5254ae42bf48a.tar nixlib-0553c30ff0f20660b6062d3144b5254ae42bf48a.tar.gz nixlib-0553c30ff0f20660b6062d3144b5254ae42bf48a.tar.bz2 nixlib-0553c30ff0f20660b6062d3144b5254ae42bf48a.tar.lz nixlib-0553c30ff0f20660b6062d3144b5254ae42bf48a.tar.xz nixlib-0553c30ff0f20660b6062d3144b5254ae42bf48a.tar.zst nixlib-0553c30ff0f20660b6062d3144b5254ae42bf48a.zip |
taskopen: init at 1.1.4
Diffstat (limited to 'pkgs/applications/misc/taskopen')
-rw-r--r-- | pkgs/applications/misc/taskopen/default.nix | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/pkgs/applications/misc/taskopen/default.nix b/pkgs/applications/misc/taskopen/default.nix new file mode 100644 index 000000000000..9f1773b191d2 --- /dev/null +++ b/pkgs/applications/misc/taskopen/default.nix @@ -0,0 +1,34 @@ +{ fetchurl, stdenv, makeWrapper, which, perl, perlPackages }: + +stdenv.mkDerivation rec { + 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 stdenv.lib; { + description = "Script for taking notes and open urls with taskwarrior"; + homepage = https://github.com/ValiValpas/taskopen; + platforms = platforms.linux; + license = stdenv.lib.licenses.free ; + maintainers = [ maintainers.winpat ]; + }; +} |