mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-28 06:14:26 +03:00
Merge pull request #60167 from winpat/add_taskopen
taskopen: init at 1.1.4
This commit is contained in:
commit
37fd81c75d
34
pkgs/applications/misc/taskopen/default.nix
Normal file
34
pkgs/applications/misc/taskopen/default.nix
Normal file
@ -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 ];
|
||||
};
|
||||
}
|
@ -20016,6 +20016,8 @@ in
|
||||
|
||||
taskserver = callPackage ../servers/misc/taskserver { };
|
||||
|
||||
taskopen = callPackage ../applications/misc/taskopen { };
|
||||
|
||||
tdesktopPackages = dontRecurseIntoAttrs (callPackage ../applications/networking/instant-messengers/telegram/tdesktop { });
|
||||
tdesktop = tdesktopPackages.stable;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user