aboutsummaryrefslogtreecommitdiffhomepage
path: root/internal/rosa/package/curl.az
blob: eee21bdd8e039c80aa5a20e5a3b81468ebec7600 (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
package curl {
	description = "command line tool and library for transferring data with URLs";
	website = "https://curl.se";
	anitya = 381;

	version# = "8.21.0";
	source = remoteTar {
		url = "https://curl.se/download/curl-"+version+".tar.bz2";
		checksum = "lJSm8bVjS0OmsarEdbvejdQdvXsb7yGarlr6oMtA9FW1EXOga8zZxa1LPtfaq_qX";
		compress = bzip2;
	};

	// remove broken test
	writable = true;
	early = "\nchmod +w tests/data && rm -f tests/data/test459\n";

	exec = make {
		configure = {
			"with-openssl";
			"with-ca-bundle": "/system/etc/ssl/certs/ca-bundle.crt";

			"disable-smb";
		};

		check = [
			"TFLAGS=" + jobsLFlagE,
			"test-nonflaky",
		];
	};

	inputs = [
		perl,
		python,
		pkg-config,
		diffutils,

		libpsl,
		openssl,
	];

	runtime = [
		zlib,
		zstd,
		libpsl,
		openssl,
	];
}