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