Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at release-16.03 23 lines 550 B view raw
1{ stdenv, fetchurl }: 2 3let name = "libbsd-0.8.2"; 4in stdenv.mkDerivation { 5 inherit name; 6 7 src = fetchurl { 8 url = "http://libbsd.freedesktop.org/releases/${name}.tar.xz"; 9 sha256 = "02i5brb2007sxq3mn862mr7yxxm0g6nj172417hjyvjax7549xmj"; 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}