Files

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

45 lines
873 B
Nix
Raw Permalink Normal View History

2025-10-09 14:15:47 +02:00
{
lib,
stdenv,
fetchFromGitHub,
cmake,
libiconv,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "simdutf";
version = "7.4.0";
src = fetchFromGitHub {
owner = "simdutf";
repo = "simdutf";
rev = "v${finalAttrs.version}";
hash = "sha256-eVlPY3aDIHnWPzbv9TASujxIW0xlvLvihQCpLUWwLEs=";
};
# Fix build on darwin
postPatch = ''
substituteInPlace tools/CMakeLists.txt --replace "-Wl,--gc-sections" ""
'';
nativeBuildInputs = [
cmake
];
buildInputs = [
libiconv
];
meta = with lib; {
description = "Unicode routines validation and transcoding at billions of characters per second";
homepage = "https://github.com/simdutf/simdutf";
license = with licenses; [
asl20
mit
];
maintainers = with maintainers; [ wineee ];
mainProgram = "simdutf";
platforms = platforms.all;
};
})