aboutsummaryrefslogtreecommitdiffhomepage
path: root/internal/rosa/package/guile/package.az
blob: 6907c624eb5cc668e06a18949bbd2480ea035e84 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
package guile {
	description = "a programming language";
	website = "https://www.gnu.org/software/guile";
	anitya = 1277;

	version# = "3.0.11";
	source = remoteTar {
		url = "https://codeberg.org/guile/guile/archive/v"+version+".tar.gz";
		checksum = "Ta7GIA0MBn5_sG089hJJ8W5QFrHqv9UKXR3D5arIEndeRjGlWCCWj_nIwFyTXcQN";
		compress = gzip;
	};
	patches = [
		"failing-filesys-test.patch",
		"failing-encoding-test.patch",
		"disable-broken-tests-musl.patch",
		"disable-broken-tests-zfs.patch",
	];

	early = `
echo '`+version+`' > .tarball-version
`;

	exec = make {
		generate = "./autogen.sh";
		_prefix# = prefix+"/"+arch+prefix;
		configure = {
			"with-libgmp-prefix": arch {
				default = unset;
				cross = _prefix;
			};
			"with-libunistring-prefix": arch {
				default = unset;
				cross = _prefix;
			};
			"with-libiconv-prefix": arch {
				default = unset;
				cross = _prefix;
			};

			"CFLAGS": arch {
				default = unset;
				riscv64 = `"${CFLAGS:-} -D__clear_cache=__builtin___clear_cache"`;
			};
		};
	};

	inputs = [
		gmp,
		libunistring,
		libffi,
		bdwgc,
		libiconv,
	];

	tools = [
		automake,
		libtool,
		gettext,
		gzip,
		tar,
		flex,
		texinfo,
		gperf,
		pkgconf,
	];

	native = [ guile ];
}