tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
tecoc: 20150606 -> unstable-2020-11-03
AndersonTorres
5 years ago
d7257afa
a141de9f
+33
-21
1 changed file
expand all
collapse all
unified
split
pkgs
applications
editors
tecoc
default.nix
+33
-21
pkgs/applications/editors/tecoc/default.nix
···
1
1
-
{ lib, stdenv, fetchFromGitHub
2
2
-
, ncurses }:
1
1
+
{ stdenv
2
2
+
, lib
3
3
+
, fetchFromGitHub
4
4
+
, ncurses
5
5
+
}:
3
6
4
7
stdenv.mkDerivation rec {
5
5
-
6
6
-
pname = "tecoc-git";
7
7
-
version = "20150606";
8
8
+
pname = "tecoc";
9
9
+
version = "unstable-2020-11-03";
8
10
9
11
src = fetchFromGitHub {
10
12
owner = "blakemcbride";
11
13
repo = "TECOC";
12
12
-
rev = "d7dffdeb1dfb812e579d6d3b518545b23e1b50cb";
13
13
-
sha256 = "11zfa73dlx71c0hmjz5n3wqcvk6082rpb4sss877nfiayisc0njj";
14
14
+
rev = "79fcb6cfd6c5f9759f6ec46aeaf86d5806b13a0b";
15
15
+
sha256 = "sha256-JooLvoh9CxLHLOXXxE7zA7R9yglr9BGUwX4nrw2/vIw=";
14
16
};
15
17
16
18
buildInputs = [ ncurses ];
17
19
18
20
makefile = if stdenv.hostPlatform.isDarwin
19
19
-
then "makefile.osx"
20
20
-
else if stdenv.hostPlatform.isFreeBSD
21
21
-
then "makefile.bsd"
22
22
-
else if stdenv.hostPlatform.isOpenBSD
23
23
-
then "makefile.bsd"
24
24
-
else if stdenv.hostPlatform.isWindows
25
25
-
then "makefile.win"
26
26
-
else "makefile.linux"; # I think Linux is a safe default...
21
21
+
then "makefile.osx"
22
22
+
else if stdenv.hostPlatform.isFreeBSD
23
23
+
then "makefile.bsd"
24
24
+
else if stdenv.hostPlatform.isOpenBSD
25
25
+
then "makefile.bsd"
26
26
+
else if stdenv.hostPlatform.isWindows
27
27
+
then "makefile.win"
28
28
+
else "makefile.linux"; # I think Linux is a safe default...
27
29
28
30
makeFlags = [ "CC=${stdenv.cc}/bin/cc" "-C src/" ];
29
31
32
32
+
preInstall = ''
33
33
+
install -d $out/bin $out/share/doc/${pname}-${version} $out/lib/teco/macros
34
34
+
'';
35
35
+
30
36
installPhase = ''
31
31
-
mkdir -p $out/bin $out/share/doc/${pname}-${version} $out/lib/teco/macros
32
32
-
cp src/tecoc $out/bin
33
33
-
cp src/aaout.txt doc/* $out/share/doc/${pname}-${version}
34
34
-
cp lib/* lib2/* $out/lib/teco/macros
37
37
+
runHook preInstall
38
38
+
install -m755 src/tecoc $out/bin
39
39
+
install -m644 src/aaout.txt doc/* $out/share/doc/${pname}-${version}
40
40
+
install -m644 lib/* lib2/* $out/lib/teco/macros
41
41
+
runHook postInstall
42
42
+
'';
43
43
+
44
44
+
postInstall = ''
35
45
(cd $out/bin
36
46
ln -s tecoc Make
37
47
ln -s tecoc mung
···
54
64
of Editor MACroS for TECO.
55
65
56
66
TECOC is a portable C implementation of TECO-11.
57
57
-
'';
67
67
+
'';
58
68
homepage = "https://github.com/blakemcbride/TECOC";
59
59
-
license = { url = "https://github.com/blakemcbride/TECOC/tree/master/doc/readme-1st.txt"; };
69
69
+
license = {
70
70
+
url = "https://github.com/blakemcbride/TECOC/tree/master/doc/readme-1st.txt";
71
71
+
};
60
72
maintainers = [ maintainers.AndersonTorres ];
61
73
platforms = platforms.unix;
62
74
};