Skip to content

Commit

Permalink
parallel-hashmap: init at 1.4.0
Browse files Browse the repository at this point in the history
  • Loading branch information
foolnotion committed Sep 20, 2024
1 parent f856709 commit 90bf924
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
2 changes: 2 additions & 0 deletions default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,8 @@

mppp = pkgs.callPackage ./pkgs/mppp { };

parallel-hashmap = pkgs.callPackage ./pkgs/parallel-hashmap { };

pareto = pkgs.python3Packages.callPackage ./pkgs/pareto { };

pegtl = pkgs.callPackage ./pkgs/pegtl { };
Expand Down
25 changes: 25 additions & 0 deletions pkgs/parallel-hashmap/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{ lib, stdenv, fetchFromGitHub, cmake }:

stdenv.mkDerivation rec {
pname = "parallel-hashmap";
version = "1.4.0";

src = fetchFromGitHub {
owner = "greg7mdp";
repo = "parallel-hashmap";
rev = "v${version}";
sha256 = "sha256-19rWcnMtWgqYlLylUjgI/p3aAM0Ois3CKoMuMmLQHmM=";
};

nativeBuildInputs = [ cmake ];

cmakeFlags = [ "-DPHMAP_INSTALL=ON" "-DPHMAP_BUILD_TESTS=OFF" "-DPHMAP_BUILD_EXAMPLES=OFF" ];

meta = with lib; {
description = "Very efficient, memory friendly, concurrent, drop-in replacement for std::unordered_map, std::unordered_set, std::map and std::set";
homepage = "https://github.com/greg7mdp/parallel-hashmap";
license = licenses.asl20;
platforms = platforms.all;
#maintainers = with maintainers; [ foolnotion ];
};
}

0 comments on commit 90bf924

Please sign in to comment.