package argp-standalone {
	description = "hierarchical argument parsing library broken out from glibc";
	website = "http://www.lysator.liu.se/~nisse/misc";

	version# = "1.3";
	source = remoteTar {
		url = "http://www.lysator.liu.se/~nisse/misc/"+
			"argp-standalone-"+version+".tar.gz";
		checksum = "vtW0VyO2pJ-hPyYmDI2zwSLS8QL0sPAUKC1t3zNYbwN2TmsaE-fADhaVtNd3eNFl";
		compress = gzip;
	};

	env = [
		"CC=cc -std=gnu89 -fPIC",
	];

	exec = make {
		install = `
install -D -m644 /usr/src/argp-standalone/argp.h /work/system/include/argp.h
install -D -m755 libargp.a /work/system/lib/libargp.a
`;
	};

	inputs = [ diffutils ];
}
