34 lines
699 B
Nix
34 lines
699 B
Nix
|
{ stdenv
|
||
|
, lib
|
||
|
, fetchFromGitHub
|
||
|
, cmake
|
||
|
}:
|
||
|
|
||
|
stdenv.mkDerivation rec {
|
||
|
pname = "robin-hood-hashing";
|
||
|
version = "3.11.5"; # pin
|
||
|
|
||
|
src = fetchFromGitHub {
|
||
|
owner = "martinus";
|
||
|
repo = "robin-hood-hashing";
|
||
|
rev = version; # pin
|
||
|
sha256 = "sha256-J4u9Q6cXF0SLHbomP42AAn5LSKBYeVgTooOhqxOIpuM=";
|
||
|
};
|
||
|
|
||
|
nativeBuildInputs = [
|
||
|
cmake
|
||
|
];
|
||
|
|
||
|
cmakeFlags = [
|
||
|
"-DRH_STANDALONE_PROJECT=OFF"
|
||
|
];
|
||
|
|
||
|
meta = with lib; {
|
||
|
description = "A faster, more efficient replacement for std::unordered_map / std::unordered_set";
|
||
|
homepage = "https://github.com/martinus/robin-hood-hashing";
|
||
|
platforms = platforms.linux;
|
||
|
license = licenses.mit;
|
||
|
maintainers = [ ];
|
||
|
};
|
||
|
}
|