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