Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 27 lines 739 B view raw
1{ 2 lib, 3 stdenv, 4 fetchurl, 5}: 6 7stdenv.mkDerivation (finalAttrs: { 8 pname = "cmph"; 9 version = "2.0.2"; 10 11 src = fetchurl { 12 url = "https://deac-ams.dl.sourceforge.net/project/cmph/v${finalAttrs.version}/cmph-${finalAttrs.version}.tar.gz"; 13 hash = "sha256-Nl8egFZADUYPHue/r9vzfV7mx46PRyO/SzwIHIlzPx4="; 14 }; 15 16 meta = { 17 description = "Free minimal perfect hash C library, providing several algorithms in the literature in a consistent, ease to use, API"; 18 homepage = "https://sourceforge.net/projects/cmph/"; 19 license = with lib.licenses; [ 20 gpl2 21 mpl11 22 ]; 23 mainProgram = "cmph"; 24 maintainers = with lib.maintainers; [ drupol ]; 25 platforms = lib.platforms.linux ++ lib.platforms.darwin; 26 }; 27})