nixpkgs/pkgs/development/libraries/libbsd/default.nix
R. RyanTM 5a952d0822 libbsd: 0.9.1 -> 0.10.0 (#66948)
Semi-automatic update generated by
https://github.com/ryantm/nixpkgs-update tools. This update was made
based on information from
https://repology.org/metapackage/libbsd/versions
2019-10-08 10:37:02 +02:00

27 lines
887 B
Nix

{ stdenv, fetchurl, autoreconfHook }:
stdenv.mkDerivation rec {
pname = "libbsd";
version = "0.10.0";
src = fetchurl {
url = "https://libbsd.freedesktop.org/releases/${pname}-${version}.tar.xz";
sha256 = "11x8q45jvjvf2dvgclds64mscyg10lva33qinf2hwgc84v3svf1l";
};
# darwin changes configure.ac which means we need to regenerate
# the configure scripts
nativeBuildInputs = [ autoreconfHook ];
patches = stdenv.lib.optional stdenv.isDarwin ./darwin.patch
# Suitable for all but limited to musl to avoid rebuild
++ stdenv.lib.optional stdenv.hostPlatform.isMusl ./musl.patch;
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 ];
};
}