diff options
author | Rutger Broekhoff | 2025-07-07 21:52:08 +0200 |
---|---|---|
committer | Rutger Broekhoff | 2025-07-07 21:52:08 +0200 |
commit | ba61dfd69504ec6263a9dee9931d93adeb6f3142 (patch) | |
tree | d6c9b78e50eeab24e0c1c09ab45909a6ae3fd5db /test/testdata/parse-okay-subversion.nix | |
download | verified-dyn-lang-interp-ba61dfd69504ec6263a9dee9931d93adeb6f3142.tar.gz verified-dyn-lang-interp-ba61dfd69504ec6263a9dee9931d93adeb6f3142.zip |
Initialize repository
Diffstat (limited to 'test/testdata/parse-okay-subversion.nix')
-rw-r--r-- | test/testdata/parse-okay-subversion.nix | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/test/testdata/parse-okay-subversion.nix b/test/testdata/parse-okay-subversion.nix new file mode 100644 index 0000000..3562728 --- /dev/null +++ b/test/testdata/parse-okay-subversion.nix | |||
@@ -0,0 +1,43 @@ | |||
1 | { localServer ? false | ||
2 | , httpServer ? false | ||
3 | , sslSupport ? false | ||
4 | , pythonBindings ? false | ||
5 | , javaSwigBindings ? false | ||
6 | , javahlBindings ? false | ||
7 | , stdenv, fetchurl | ||
8 | , openssl ? null, httpd ? null, db4 ? null, expat, swig ? null, j2sdk ? null | ||
9 | }: | ||
10 | |||
11 | assert expat != null; | ||
12 | assert localServer -> db4 != null; | ||
13 | assert httpServer -> httpd != null && httpd.expat == expat; | ||
14 | assert sslSupport -> openssl != null && (httpServer -> httpd.openssl == openssl); | ||
15 | assert pythonBindings -> swig != null && swig.pythonSupport; | ||
16 | assert javaSwigBindings -> swig != null && swig.javaSupport; | ||
17 | assert javahlBindings -> j2sdk != null; | ||
18 | |||
19 | stdenv.mkDerivation { | ||
20 | name = "subversion-1.1.1"; | ||
21 | |||
22 | builder = /foo/bar; | ||
23 | src = fetchurl { | ||
24 | url = http://subversion.tigris.org/tarballs/subversion-1.1.1.tar.bz2; | ||
25 | md5 = "a180c3fe91680389c210c99def54d9e0"; | ||
26 | }; | ||
27 | |||
28 | # This is a hopefully temporary fix for the problem that | ||
29 | # libsvnjavahl.so isn't linked against libstdc++, which causes | ||
30 | # loading the library into the JVM to fail. | ||
31 | patches = if javahlBindings then [/javahl.patch] else []; | ||
32 | |||
33 | openssl = if sslSupport then openssl else null; | ||
34 | httpd = if httpServer then httpd else null; | ||
35 | db4 = if localServer then db4 else null; | ||
36 | swig = if pythonBindings || javaSwigBindings then swig else null; | ||
37 | python = if pythonBindings then swig.python else null; | ||
38 | j2sdk = if javaSwigBindings then swig.j2sdk else | ||
39 | if javahlBindings then j2sdk else null; | ||
40 | |||
41 | inherit expat localServer httpServer sslSupport | ||
42 | pythonBindings javaSwigBindings javahlBindings; | ||
43 | } | ||