at v192 23 lines 551 B view raw
1{ stdenv, fetchurl }: 2 3let name = "libbsd-0.7.0"; 4in stdenv.mkDerivation { 5 inherit name; 6 7 src = fetchurl { 8 url = "http://libbsd.freedesktop.org/releases/${name}.tar.xz"; 9 sha256 = "1fqhbi0vd6xjxazf633x388cc8qyn58l78704s0h6k63wlbhwfqg"; 10 }; 11 12 patchPhase = '' 13 substituteInPlace Makefile \ 14 --replace "/usr" "$out" \ 15 --replace "{exec_prefix}" "{prefix}" 16 ''; 17 18 meta = { 19 description = "Common functions found on BSD systems"; 20 homepage = http://libbsd.freedesktop.org/; 21 license = stdenv.lib.licenses.bsd3; 22 }; 23}