nixpkgs/pkgs/by-name/cr/croaring/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

41 lines
1.1 KiB
Nix
Raw Normal View History

2023-09-20 13:32:31 +00:00
{ lib, stdenv, fetchFromGitHub, cmake }:
2019-06-04 13:09:09 +00:00
stdenv.mkDerivation rec {
pname = "croaring";
2023-09-20 13:32:31 +00:00
version = "2.0.3";
2019-06-04 13:09:09 +00:00
src = fetchFromGitHub {
owner = "RoaringBitmap";
repo = "CRoaring";
rev = "v${version}";
2023-09-20 13:32:31 +00:00
hash = "sha256-WaFyJ/6zstJ05e3vfrwhaZKQsjRAEvVTs688Hw0fr94=";
2019-06-04 13:09:09 +00:00
};
2023-09-20 13:32:31 +00:00
# roaring.pc.in cannot handle absolute CMAKE_INSTALL_*DIRs, nor
# overridden CMAKE_INSTALL_FULL_*DIRs. With Nix, they are guaranteed
# to be absolute so the following patch suffices (see #144170).
patches = [ ./fix-pkg-config.patch ];
2019-06-04 13:09:09 +00:00
nativeBuildInputs = [ cmake ];
2023-09-20 13:32:31 +00:00
doCheck = true;
preConfigure = ''
mkdir -p dependencies/.cache
ln -s ${fetchFromGitHub {
owner = "clibs";
repo = "cmocka";
rev = "f5e2cd7";
hash = "sha256-Oq0nFsZhl8IF7kQN/LgUq8VBy+P7gO98ep/siy5A7Js=";
}} dependencies/.cache/cmocka
'';
2019-06-04 13:09:09 +00:00
meta = with lib; {
description = "Compressed bitset library for C and C++";
2023-09-20 13:32:31 +00:00
homepage = "https://roaringbitmap.org/";
license = with licenses; [ asl20 mit ];
maintainers = [ maintainers.orivej ];
2021-03-08 15:48:42 +00:00
platforms = platforms.all;
2019-06-04 13:09:09 +00:00
};
}