nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 39 lines 953 B view raw
1{ 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 cmake, 6 nix-update-script, 7}: 8stdenv.mkDerivation (finalAttrs: { 9 pname = "emhash"; 10 version = "1.0.1"; 11 12 src = fetchFromGitHub { 13 owner = "ktprime"; 14 repo = "emhash"; 15 tag = "v${finalAttrs.version}"; 16 hash = "sha256-dFj/QaGdTJYdcxKlS9tES6OHae8xPMnrG9ccRNM/hi8="; 17 }; 18 19 nativeBuildInputs = [ 20 cmake 21 ]; 22 23 cmakeFlags = [ 24 # By default, it will try to build the benchmark suite, 25 # but we only care about the headers copied by the install target. 26 "-DWITH_BENCHMARKS=Off" 27 ]; 28 29 passthru.updateScript = nix-update-script { }; 30 31 meta = { 32 homepage = "https://github.com/ktprime/emhash"; 33 changelog = "https://github.com/ktprime/emhash/releases/tag/v${finalAttrs.version}"; 34 description = "Fast and memory efficient c++ flat hash map/set"; 35 license = lib.licenses.mit; 36 maintainers = with lib.maintainers; [ blenderfreaky ]; 37 platforms = lib.platforms.all; 38 }; 39})