tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
elinks: Simplify cross, no `crossAttrs` or `crossConfig`
John Ericson
8 years ago
8babcd4d
0825f30f
+25
-24
1 changed file
expand all
collapse all
unified
split
pkgs
applications
networking
browsers
elinks
default.nix
+25
-24
pkgs/applications/networking/browsers/elinks/default.nix
···
1
1
-
{ stdenv, fetchurl, perl, ncurses, xlibsWrapper, bzip2, zlib, openssl
2
2
-
, spidermonkey_1_8_5, gpm
3
3
-
, enableGuile ? false, guile ? null # Incompatible licenses, LGPLv3 - GPLv2
4
4
-
, enablePython ? false, python ? null
1
1
+
{ stdenv, fetchurl, ncurses, xlibsWrapper, bzip2, zlib, openssl
2
2
+
, gpm
3
3
+
, # Incompatible licenses, LGPLv3 - GPLv2
4
4
+
enableGuile ? false, guile ? null
5
5
+
, enablePython ? false, python ? null
6
6
+
, enablePerl ? (stdenv.hostPlatform == stdenv.buildPlatform), perl ? null
7
7
+
, enableSpidermonkey ? (stdenv.hostPlatform == stdenv.buildPlatform), spidermonkey_1_8_5 ? null
5
8
}:
6
9
7
10
assert enableGuile -> guile != null;
···
17
20
18
21
patches = [ ./gc-init.patch ];
19
22
20
20
-
buildInputs = [ perl ncurses xlibsWrapper bzip2 zlib openssl spidermonkey_1_8_5 gpm ]
23
23
+
buildInputs = [ ncurses xlibsWrapper bzip2 zlib openssl spidermonkey_1_8_5 gpm ]
21
24
++ stdenv.lib.optional enableGuile guile
22
22
-
++ stdenv.lib.optional enablePython python;
25
25
+
++ stdenv.lib.optional enablePython python
26
26
+
++ stdenv.lib.optional enablePerl perl
27
27
+
;
23
28
24
24
-
configureFlags =
25
25
-
''
26
26
-
--enable-finger --enable-html-highlight
27
27
-
--with-perl --enable-gopher --enable-cgi --enable-bittorrent
28
28
-
--with-spidermonkey=${spidermonkey_1_8_5}
29
29
-
--enable-nntp --with-openssl=${openssl.dev}
30
30
-
'' + stdenv.lib.optionalString enableGuile " --with-guile"
31
31
-
+ stdenv.lib.optionalString enablePython " --with-python";
32
32
-
33
33
-
crossAttrs = {
34
34
-
propagatedBuildInputs = [ ncurses.crossDrv zlib.crossDrv openssl.crossDrv ];
35
35
-
configureFlags = ''
36
36
-
--enable-finger --enable-html-highlight
37
37
-
--enable-gopher --enable-cgi --enable-bittorrent --enable-nntp
38
38
-
--with-openssl=${openssl.crossDrv}
39
39
-
--with-bzip2=${bzip2.crossDrv}
40
40
-
'';
41
41
-
};
29
29
+
configureFlags = [
30
30
+
"--enable-finger"
31
31
+
"--enable-html-highlight"
32
32
+
"--enable-gopher"
33
33
+
"--enable-cgi"
34
34
+
"--enable-bittorrent"
35
35
+
"--enable-nntp"
36
36
+
"--with-openssl=${openssl.dev}"
37
37
+
"--with-bzip2=${bzip2.dev}"
38
38
+
] ++ stdenv.lib.optional enableGuile "--with-guile"
39
39
+
++ stdenv.lib.optional enablePython "--with-python"
40
40
+
++ stdenv.lib.optional enablePerl "--with-perl"
41
41
+
++ stdenv.lib.optional enableSpidermonkey "--with-spidermonkey=${spidermonkey_1_8_5}"
42
42
+
;
42
43
43
44
meta = {
44
45
description = "Full-featured text-mode web browser";