2020-10-15 19:05:13 +11:00
|
|
|
{ stdenv
|
2021-02-01 08:45:20 +11:00
|
|
|
, lib
|
2020-10-15 19:05:13 +11:00
|
|
|
, fetchFromGitHub
|
|
|
|
|
|
|
|
, autoreconfHook
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "libhl";
|
|
|
|
version = "3.1";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "xant";
|
|
|
|
repo = pname;
|
|
|
|
rev = "${pname}-${version}";
|
|
|
|
sha256 = "05mrp5rmki0wghdpmcgvsi8lqhfshifbmhp1qlkd89fb2srq91lf";
|
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
autoreconfHook
|
|
|
|
];
|
|
|
|
|
|
|
|
patches = [ ./fix-link.patch ];
|
|
|
|
|
|
|
|
preInstall = ''
|
|
|
|
mkdir -p $out/include $out/lib
|
|
|
|
'';
|
|
|
|
|
2021-02-01 08:45:20 +11:00
|
|
|
meta = with lib; {
|
2020-10-15 19:05:13 +11:00
|
|
|
homepage = "https://github.com/xant/libhl";
|
|
|
|
description = "Simple and fast C library implementing a thread-safe API to manage hash-tables, linked lists, lock-free ring buffers and queues ";
|
2021-01-04 12:10:27 +11:00
|
|
|
license = licenses.lgpl3;
|
|
|
|
platforms = platforms.all;
|
2020-10-15 19:05:13 +11:00
|
|
|
};
|
|
|
|
}
|