about summary refs log tree commit diff
path: root/pkgs/development/tools/vulkan-validation-layers/robin-hood-hashing.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/development/tools/vulkan-validation-layers/robin-hood-hashing.nix')
-rw-r--r--pkgs/development/tools/vulkan-validation-layers/robin-hood-hashing.nix33
1 files changed, 33 insertions, 0 deletions
diff --git a/pkgs/development/tools/vulkan-validation-layers/robin-hood-hashing.nix b/pkgs/development/tools/vulkan-validation-layers/robin-hood-hashing.nix
new file mode 100644
index 0000000000000..cd08f0231ab20
--- /dev/null
+++ b/pkgs/development/tools/vulkan-validation-layers/robin-hood-hashing.nix
@@ -0,0 +1,33 @@
+{ 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 = [ ];
+  };
+}