Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 24.05-beta 47 lines 1.2 kB view raw
1{ lib 2, stdenv 3, fetchurl 4, autoreconfHook 5, libmd 6, gitUpdater 7}: 8 9stdenv.mkDerivation rec { 10 pname = "libbsd"; 11 version = "0.11.8"; 12 13 src = fetchurl { 14 url = "https://libbsd.freedesktop.org/releases/${pname}-${version}.tar.xz"; 15 hash = "sha256-Vf36Jpb7TVWlkvqa0Uqd+JfHsACN2zswxBmRSEH4XzM="; 16 }; 17 18 outputs = [ "out" "dev" "man" ]; 19 20 enableParallelBuilding = true; 21 22 doCheck = true; 23 24 nativeBuildInputs = [ autoreconfHook ]; 25 propagatedBuildInputs = [ libmd ]; 26 27 patches = lib.optionals stdenv.isDarwin [ 28 # Temporary build system hack from upstream maintainer 29 # https://gitlab.freedesktop.org/libbsd/libbsd/-/issues/19#note_2017684 30 ./darwin-fix-libbsd.sym.patch 31 ]; 32 33 passthru.updateScript = gitUpdater { 34 # No nicer place to find latest release. 35 url = "https://gitlab.freedesktop.org/libbsd/libbsd.git"; 36 }; 37 38 meta = with lib; { 39 description = "Common functions found on BSD systems"; 40 homepage = "https://libbsd.freedesktop.org/"; 41 license = with licenses; [ beerware bsd2 bsd3 bsdOriginal isc mit ]; 42 platforms = platforms.unix; 43 # See architectures defined in src/local-elf.h. 44 badPlatforms = lib.platforms.microblaze; 45 maintainers = with maintainers; [ matthewbauer ]; 46 }; 47}