1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-20 21:17:46 +00:00
nixpkgs/pkgs/development/libraries/libbsd/default.nix

25 lines
707 B
Nix
Raw Normal View History

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