2017-04-21 02:17:43 +01:00
|
|
|
{ stdenv, fetchurl, autoreconfHook }:
|
2012-02-05 00:51:35 +00:00
|
|
|
|
2017-03-01 01:35:26 +00:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "libbsd-${version}";
|
2017-10-21 23:36:25 +01:00
|
|
|
version = "0.8.6";
|
2012-02-05 00:51:35 +00:00
|
|
|
|
2017-04-21 02:17:43 +01:00
|
|
|
src = fetchurl {
|
|
|
|
url = "http://libbsd.freedesktop.org/releases/${name}.tar.xz";
|
2017-10-21 23:36:25 +01:00
|
|
|
sha256 = "11wnkzims5grprvhb1ssmq9pc2lcgh2r2rk8gwgz36ply6fvyzs6";
|
2017-04-21 02:17:43 +01:00
|
|
|
};
|
2017-04-20 23:55:47 +01:00
|
|
|
|
2017-04-21 02:17:43 +01:00
|
|
|
# darwin changes configure.ac which means we need to regenerate
|
|
|
|
# the configure scripts
|
|
|
|
nativeBuildInputs = [ autoreconfHook ];
|
2017-04-20 23:55:47 +01:00
|
|
|
|
2017-04-21 02:17:43 +01:00
|
|
|
patches = stdenv.lib.optionals stdenv.isDarwin [ ./darwin.patch ];
|
2012-02-05 00:51:35 +00:00
|
|
|
|
2017-03-01 01:35:26 +00:00
|
|
|
meta = with stdenv.lib; {
|
2012-02-05 00:51:35 +00:00
|
|
|
description = "Common functions found on BSD systems";
|
2017-08-02 22:50:51 +01:00
|
|
|
homepage = https://libbsd.freedesktop.org/;
|
2017-03-01 01:35:26 +00:00
|
|
|
license = licenses.bsd3;
|
2017-04-20 23:55:47 +01:00
|
|
|
platforms = platforms.linux ++ platforms.darwin;
|
2017-11-13 06:31:37 +00:00
|
|
|
maintainers = with maintainer; [ matthewbauer ];
|
2012-02-05 00:51:35 +00:00
|
|
|
};
|
|
|
|
}
|