package attr {
	description = "Commands for Manipulating Filesystem Extended Attributes";
	website = "https://savannah.nongnu.org/projects/attr";
	anitya = 137;

	version# = "2.6.0";
	source = remoteTar {
		url = "https://download.savannah.nongnu.org/releases/attr/"+
			"attr-"+version+".tar.gz";
		checksum = "pp-NvD1cMIwZycNwZGW2ez-PbTEpHxrRnVH27csj9QdN4oEBkEbJOZX1IIvKnTWS";
		compress = gzip;
	};

	patches = [ "musl-errno.patch" ];

	bin = [ "perl" ];
	populateUsrBin = true;
	exec = make {};

	inputs = [
		perl,

		kernel-headers,
	];
}

package acl {
	description = "Commands for Manipulating POSIX Access Control Lists";
	website = "https://savannah.nongnu.org/projects/acl";
	anitya = 16;

	version# = "2.4.0";
	source = remoteTar {
		url = "https://download.savannah.nongnu.org/releases/acl/"+
			"acl-"+version+".tar.gz";
		checksum = "U2eaAsWrhhzEfhyprwHQQG55bFPZxtsHk1Usnd9Jb_g-H__pJod4H3RTrL4ipXDw";
		compress = gzip;
	};

	exec = make {
		// makes assumptions about uid_map/gid_map
		skipCheck = true;
	};

	inputs = [ attr, kernel-headers ];
	runtime = [ attr ];
}
