2018-06-06 05:43:49 +02:00
|
|
|
{ stdenv, fetchurl, autoreconfHook }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "libbsd";
|
2019-10-13 18:41:06 +02:00
|
|
|
version = "0.10.0";
|
2018-06-06 05:43:49 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
2019-08-15 14:41:18 +02:00
|
|
|
url = "https://libbsd.freedesktop.org/releases/${pname}-${version}.tar.xz";
|
2019-10-13 18:41:06 +02:00
|
|
|
sha256 = "11x8q45jvjvf2dvgclds64mscyg10lva33qinf2hwgc84v3svf1l";
|
2018-06-06 05:43:49 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
# darwin changes configure.ac which means we need to regenerate
|
|
|
|
# the configure scripts
|
|
|
|
nativeBuildInputs = [ autoreconfHook ];
|
|
|
|
|
2019-10-13 18:41:06 +02:00
|
|
|
patches = [ ./darwin.patch ];
|
2018-06-06 05:43:49 +02:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Common functions found on BSD systems";
|
|
|
|
homepage = https://libbsd.freedesktop.org/;
|
|
|
|
license = licenses.bsd3;
|
|
|
|
platforms = platforms.linux ++ platforms.darwin;
|
|
|
|
maintainers = with maintainers; [ matthewbauer ];
|
|
|
|
};
|
|
|
|
}
|