From 2cd2faedd88375f7b252ba0ad52ca085c2109a0c Mon Sep 17 00:00:00 2001 From: blenderfreaky Date: Fri, 12 Sep 2025 14:12:20 +0200 Subject: [PATCH] emhash: init at 1.0.1 --- pkgs/by-name/em/emhash/package.nix | 39 ++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 pkgs/by-name/em/emhash/package.nix diff --git a/pkgs/by-name/em/emhash/package.nix b/pkgs/by-name/em/emhash/package.nix new file mode 100644 index 000000000000..8a66cc2f4e7d --- /dev/null +++ b/pkgs/by-name/em/emhash/package.nix @@ -0,0 +1,39 @@ +{ + 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; + }; +})