commit
58b0be2b45
1 changed files with 40 additions and 0 deletions
40
pkgs/by-name/si/simdutf/package.nix
Normal file
40
pkgs/by-name/si/simdutf/package.nix
Normal file
|
@ -0,0 +1,40 @@
|
|||
{ lib
|
||||
, stdenv
|
||||
, fetchFromGitHub
|
||||
, cmake
|
||||
, libiconv
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "simdutf";
|
||||
version = "4.0.5";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "simdutf";
|
||||
repo = "simdutf";
|
||||
rev = "v${finalAttrs.version}";
|
||||
hash = "sha256-HNTVo/uB7UTCy5VVdmf6vka9T+htra7Vk7NF4hByGP4=";
|
||||
};
|
||||
|
||||
# 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;
|
||||
};
|
||||
})
|
Loading…
Reference in a new issue