aboutsummaryrefslogtreecommitdiffhomepage
path: root/internal/rosa/package/libbpf.az
blob: 14b3d0bf171d7bd4acc0c1c5e00a19c8d16b6b95 (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
package libbpf {
	description = "the reference library for eBPF development";
	website = "https://github.com/libbpf/libbpf";
	anitya = 141355;

	version# = "1.7.0";
	source = remoteGitHub {
		suffix = "libbpf/libbpf";
		tag = "v"+version;
		checksum = "Gsk3TYDTne6behhdiyRB0Y5GTGECRh2265VY7IQ_VB62vIm7U9oqzEW-Va5Tvi_w";
	};

	env = [ "PREFIX=/system" ];
	early = "cd src";
	writable = true;
	chmod = true;

	exec = make {
		inPlace = true;
		skipConfigure = true;
		skipCheck = true;
		install = "make DESTDIR=/work LIBSUBDIR=lib install";
	};

	inputs = [
		elfutils,
		kernel-headers,
	];

	runtime = [ elfutils ];
}