nixpkgs/pkgs/development/libraries/libbsd/default.nix

25 lines
706 B
Nix
Raw Normal View History

2017-04-21 03:17:43 +02:00
{ stdenv, fetchurl, autoreconfHook }:
2017-03-01 02:35:26 +01:00
stdenv.mkDerivation rec {
name = "libbsd-${version}";
version = "0.8.3";
2017-04-21 03:17:43 +02:00
src = fetchurl {
url = "http://libbsd.freedesktop.org/releases/${name}.tar.xz";
sha256 = "1a1l7afchlvvj2zfi7ajcg26bbkh5i98y2v5h9j5p1px9m7n6jwk";
};
2017-04-21 03:17:43 +02:00
# darwin changes configure.ac which means we need to regenerate
# the configure scripts
nativeBuildInputs = [ autoreconfHook ];
2017-04-21 03:17:43 +02:00
patches = stdenv.lib.optionals stdenv.isDarwin [ ./darwin.patch ];
2017-03-01 02:35:26 +01:00
meta = with stdenv.lib; {
description = "Common functions found on BSD systems";
homepage = http://libbsd.freedesktop.org/;
2017-03-01 02:35:26 +01:00
license = licenses.bsd3;
platforms = platforms.linux ++ platforms.darwin;
};
}