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
40 lines
954 B
Nix
40 lines
954 B
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
cmake,
|
|
nix-update-script,
|
|
}:
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "emhash";
|
|
version = "1.0.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "ktprime";
|
|
repo = "emhash";
|
|
tag = "v${finalAttrs.version}";
|
|
hash = "sha256-dFj/QaGdTJYdcxKlS9tES6OHae8xPMnrG9ccRNM/hi8=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
cmake
|
|
];
|
|
|
|
cmakeFlags = [
|
|
# By default, it will try to build the benchmark suite,
|
|
# but we only care about the headers copied by the install target.
|
|
"-DWITH_BENCHMARKS=Off"
|
|
];
|
|
|
|
passthru.update-script = nix-update-script { };
|
|
|
|
meta = {
|
|
homepage = "https://github.com/ktprime/emhash";
|
|
changelog = "https://github.com/ktprime/emhash/releases/tag/v${finalAttrs.version}";
|
|
description = "Fast and memory efficient c++ flat hash map/set";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [ blenderfreaky ];
|
|
platforms = lib.platforms.all;
|
|
};
|
|
})
|