Files
nixpkgs/pkgs/by-name/cr/croaring/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

56 lines
1.3 KiB
Nix

{
lib,
stdenv,
fetchFromGitHub,
cmake,
cmocka,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "croaring";
version = "4.3.1";
src = fetchFromGitHub {
owner = "RoaringBitmap";
repo = "CRoaring";
tag = "v${finalAttrs.version}";
hash = "sha256-c4o8AMCtDGLChXxJKJyxkWhuYu7axqLb2ce8IOGk920=";
};
# 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 ];
nativeBuildInputs = [ cmake ];
buildInputs = [ cmocka ];
doCheck = true;
preConfigure = ''
mkdir -p dependencies/.cache
ln -s ${
fetchFromGitHub {
owner = "clibs";
repo = "cmocka";
rev = "f5e2cd77c88d9f792562888d2b70c5a396bfbf7a";
hash = "sha256-Oq0nFsZhl8IF7kQN/LgUq8VBy+P7gO98ep/siy5A7Js=";
}
} dependencies/.cache/cmocka
'';
cmakeFlags = [ (lib.cmakeBool "ROARING_USE_CPM" false) ];
meta = {
description = "Compressed bitset library for C and C++";
homepage = "https://roaringbitmap.org";
license = with lib.licenses; [
asl20
mit
];
maintainers = [ lib.maintainers.orivej ];
platforms = lib.platforms.all;
};
})