2012-02-05 00:51:35 +00:00
|
|
|
{ stdenv, fetchurl }:
|
|
|
|
|
2014-10-08 18:00:11 +00:00
|
|
|
let name = "libbsd-0.7.0";
|
2012-02-05 00:51:35 +00:00
|
|
|
in stdenv.mkDerivation {
|
|
|
|
inherit name;
|
|
|
|
|
|
|
|
src = fetchurl {
|
2014-10-08 18:00:11 +00:00
|
|
|
url = "http://libbsd.freedesktop.org/releases/${name}.tar.xz";
|
|
|
|
sha256 = "1fqhbi0vd6xjxazf633x388cc8qyn58l78704s0h6k63wlbhwfqg";
|
2012-02-05 00:51:35 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
patchPhase = ''
|
|
|
|
substituteInPlace Makefile \
|
|
|
|
--replace "/usr" "$out" \
|
|
|
|
--replace "{exec_prefix}" "{prefix}"
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Common functions found on BSD systems";
|
|
|
|
homepage = http://libbsd.freedesktop.org/;
|
2014-06-19 04:19:00 +00:00
|
|
|
license = stdenv.lib.licenses.bsd3;
|
2012-02-05 00:51:35 +00:00
|
|
|
};
|
|
|
|
}
|