tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
kawa: init at 3.1.1
Ben Siraphob
6 months ago
defecd64
59ca61e5
+72
1 changed file
expand all
collapse all
unified
split
pkgs
by-name
ka
kawa
package.nix
+72
pkgs/by-name/ka/kawa/package.nix
···
1
1
+
{
2
2
+
lib,
3
3
+
stdenv,
4
4
+
fetchurl,
5
5
+
jdk11,
6
6
+
ant,
7
7
+
makeWrapper,
8
8
+
}:
9
9
+
10
10
+
stdenv.mkDerivation (finalAttrs: {
11
11
+
pname = "kawa";
12
12
+
version = "3.1.1";
13
13
+
14
14
+
src = fetchurl {
15
15
+
url = "mirror://gnu/kawa/kawa-${finalAttrs.version}.tar.gz";
16
16
+
hash = "sha256-jJpQzWsQAVTJAb0ZCzrNL7g1PzNiLEos6Po5Kn8J4Bk=";
17
17
+
};
18
18
+
19
19
+
nativeBuildInputs = [
20
20
+
jdk11
21
21
+
ant
22
22
+
makeWrapper
23
23
+
];
24
24
+
25
25
+
buildPhase = ''
26
26
+
runHook preBuild
27
27
+
28
28
+
ant -Denable-java-frontend=yes
29
29
+
30
30
+
runHook postBuild
31
31
+
'';
32
32
+
33
33
+
installPhase = ''
34
34
+
runHook preInstall
35
35
+
36
36
+
mkdir -p $out/share/java
37
37
+
cp lib/kawa.jar $out/share/java/kawa.jar
38
38
+
39
39
+
# Install info files
40
40
+
mkdir -p $out/share/info
41
41
+
cp doc/*.info* $out/share/info/
42
42
+
43
43
+
# Install man pages
44
44
+
mkdir -p $out/share/man/man1
45
45
+
cp doc/kawa.man $out/share/man/man1/kawa.1
46
46
+
cp doc/qexo.man $out/share/man/man1/qexo.1
47
47
+
48
48
+
mkdir -p $out/bin
49
49
+
makeWrapper ${jdk11}/bin/java $out/bin/kawa \
50
50
+
--add-flags "-Dkawa.home=$out -jar $out/share/java/kawa.jar"
51
51
+
52
52
+
runHook postInstall
53
53
+
'';
54
54
+
55
55
+
meta = {
56
56
+
description = "Scheme implementation running on the Java platform";
57
57
+
longDescription = ''
58
58
+
Kawa is a general-purpose programming language that runs on the Java platform.
59
59
+
It aims to combine the benefits of dynamic scripting languages (less boiler-plate
60
60
+
code, fast and easy start-up, a REPL, no required compilation step) with the
61
61
+
benefits of traditional compiled languages (fast execution, static error detection,
62
62
+
modularity, zero-overhead Java platform integration).
63
63
+
'';
64
64
+
homepage = "https://www.gnu.org/software/kawa";
65
65
+
license = [
66
66
+
lib.licenses.mit
67
67
+
lib.licenses.gpl2Plus
68
68
+
];
69
69
+
maintainers = with lib.maintainers; [ siraben ];
70
70
+
platforms = lib.platforms.unix;
71
71
+
};
72
72
+
})