From eed38c7f7458636659b41075e110159b98da6d10 Mon Sep 17 00:00:00 2001 From: Pol Dellaiera Date: Mon, 31 Mar 2025 18:31:46 +0200 Subject: [PATCH] cmph: init at 2.0.2 --- pkgs/by-name/cm/cmph/package.nix | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 pkgs/by-name/cm/cmph/package.nix diff --git a/pkgs/by-name/cm/cmph/package.nix b/pkgs/by-name/cm/cmph/package.nix new file mode 100644 index 000000000000..6780c294ecc5 --- /dev/null +++ b/pkgs/by-name/cm/cmph/package.nix @@ -0,0 +1,26 @@ +{ + lib, + stdenv, + fetchurl, +}: + +stdenv.mkDerivation (finalAttrs: { + pname = "cmph"; + version = "2.0.2"; + + src = fetchurl { + url = "https://deac-ams.dl.sourceforge.net/project/cmph/v${finalAttrs.version}/cmph-${finalAttrs.version}.tar.gz"; + hash = "sha256-Nl8egFZADUYPHue/r9vzfV7mx46PRyO/SzwIHIlzPx4="; + }; + + meta = { + description = "Free minimal perfect hash C library, providing several algorithms in the literature in a consistent, ease to use, API"; + homepage = "https://sourceforge.net/projects/cmph/"; + license = with lib.licenses; [ + gpl2 + mpl11 + ]; + maintainers = with lib.maintainers; [ drupol ]; + platforms = lib.platforms.linux ++ lib.platforms.darwin; + }; +})