Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib 2, stdenv 3, fetchurl 4, autoreconfHook 5, libmd 6, gitUpdater 7}: 8 9stdenv.mkDerivation rec { 10 pname = "libbsd"; 11 version = "0.11.7"; 12 13 src = fetchurl { 14 url = "https://libbsd.freedesktop.org/releases/${pname}-${version}.tar.xz"; 15 hash = "sha256-m6oYYFnrvyXAYwjp+ZH9ox9xg8DySTGCbYOqar2KAmE="; 16 }; 17 18 outputs = [ "out" "dev" "man" ]; 19 20 # darwin changes configure.ac which means we need to regenerate 21 # the configure scripts 22 nativeBuildInputs = [ autoreconfHook ]; 23 propagatedBuildInputs = [ libmd ]; 24 25 patches = [ ./darwin.patch ]; 26 27 passthru.updateScript = gitUpdater { 28 # No nicer place to find latest release. 29 url = "https://gitlab.freedesktop.org/libbsd/libbsd.git"; 30 }; 31 32 meta = with lib; { 33 description = "Common functions found on BSD systems"; 34 homepage = "https://libbsd.freedesktop.org/"; 35 license = with licenses; [ beerware bsd2 bsd3 bsdOriginal isc mit ]; 36 platforms = platforms.linux ++ platforms.darwin; 37 maintainers = with maintainers; [ matthewbauer ]; 38 }; 39}