tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
taskopen: modernize
Sandro Jäckel
4 years ago
d279bf97
5da2746c
+18
-11
1 changed file
expand all
collapse all
unified
split
pkgs
applications
misc
taskopen
default.nix
+18
-11
pkgs/applications/misc/taskopen/default.nix
···
1
-
{ fetchurl, lib, stdenv, makeWrapper, which, perl, perlPackages }:
2
3
-
stdenv.mkDerivation {
4
-
name = "taskopen-1.1.5";
5
-
src = fetchurl {
6
-
url = "https://github.com/ValiValpas/taskopen/archive/v1.1.5.tar.gz";
7
-
sha256 = "sha256-7fncdt1wCJ4zNLrCf93yRFD8Q4XQ3DCJ1+zJg9Gcl3w=";
0
0
0
0
8
};
9
10
-
nativeBuildInputs = [ makeWrapper ];
11
-
buildInputs = [ which perl ] ++ (with perlPackages; [ JSON ]);
12
-
13
-
installPhase = ''
14
# We don't need a DESTDIR and an empty string results in an absolute path
15
# (due to the trailing slash) which breaks the build.
16
sed 's|$(DESTDIR)/||' -i Makefile
0
17
0
0
0
0
0
18
make PREFIX=$out
19
make PREFIX=$out install
20
'';
···
28
description = "Script for taking notes and open urls with taskwarrior";
29
homepage = "https://github.com/ValiValpas/taskopen";
30
platforms = platforms.linux;
31
-
license = lib.licenses.free ;
32
maintainers = [ maintainers.winpat ];
33
};
34
}
···
1
+
{ lib, stdenv, fetchFromGitHub, makeWrapper, which, perl, perlPackages }:
2
3
+
stdenv.mkDerivation rec {
4
+
pname = "taskopen";
5
+
version = "1.1.5";
6
+
7
+
src = fetchFromGitHub {
8
+
owner = "ValiValpas";
9
+
repo = "taskopen";
10
+
rev = "v${version}";
11
+
sha256 = "sha256-/xf7Ph2KKiZ5lgLKk95nCgw/z9wIBmuWf3QGaNebgHg=";
12
};
13
14
+
postPatch = ''
0
0
0
15
# We don't need a DESTDIR and an empty string results in an absolute path
16
# (due to the trailing slash) which breaks the build.
17
sed 's|$(DESTDIR)/||' -i Makefile
18
+
'';
19
20
+
nativeBuildInputs = [ makeWrapper ];
21
+
buildInputs = [ which ]
22
+
++ (with perlPackages; [ JSON perl ]);
23
+
24
+
installPhase = ''
25
make PREFIX=$out
26
make PREFIX=$out install
27
'';
···
35
description = "Script for taking notes and open urls with taskwarrior";
36
homepage = "https://github.com/ValiValpas/taskopen";
37
platforms = platforms.linux;
38
+
license = licenses.free;
39
maintainers = [ maintainers.winpat ];
40
};
41
}