nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at 20.09 25 lines 730 B view raw
1{ stdenv, fetchurl, autoreconfHook }: 2 3stdenv.mkDerivation rec { 4 pname = "libbsd"; 5 version = "0.10.0"; 6 7 src = fetchurl { 8 url = "https://libbsd.freedesktop.org/releases/${pname}-${version}.tar.xz"; 9 sha256 = "11x8q45jvjvf2dvgclds64mscyg10lva33qinf2hwgc84v3svf1l"; 10 }; 11 12 # darwin changes configure.ac which means we need to regenerate 13 # the configure scripts 14 nativeBuildInputs = [ autoreconfHook ]; 15 16 patches = [ ./darwin.patch ]; 17 18 meta = with stdenv.lib; { 19 description = "Common functions found on BSD systems"; 20 homepage = "https://libbsd.freedesktop.org/"; 21 license = licenses.bsd3; 22 platforms = platforms.linux ++ platforms.darwin; 23 maintainers = with maintainers; [ matthewbauer ]; 24 }; 25}