nixpkgs/pkgs/by-name/si/simdutf/package.nix

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

41 lines
850 B
Nix
Raw Normal View History

2023-11-27 10:00:34 +00:00
{ lib
, stdenv
, fetchFromGitHub
, cmake
, libiconv
}:
stdenv.mkDerivation (finalAttrs: {
pname = "simdutf";
2024-10-24 13:04:43 +00:00
version = "5.6.0";
2023-11-27 10:00:34 +00:00
src = fetchFromGitHub {
owner = "simdutf";
repo = "simdutf";
rev = "v${finalAttrs.version}";
2024-10-24 13:04:43 +00:00
hash = "sha256-DJCr+QoCmN0wJiXH+mv4g/zJYFfgJDGw0l6pzPriBVs=";
2023-11-27 10:00:34 +00:00
};
# 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; [ rewine ];
mainProgram = "simdutf";
platforms = platforms.all;
};
})