base16-schemes: unstable-2024-06-21 -> unstable-2024-11-12
[NixPkgs.git] / pkgs / by-name / si / simdutf / package.nix
blob4aba0ae8d75b7be0780bad396a3bbbe134ae05d9
1 { lib
2 , stdenv
3 , fetchFromGitHub
4 , cmake
5 , libiconv
6 }:
8 stdenv.mkDerivation (finalAttrs: {
9   pname = "simdutf";
10   version = "5.6.0";
12   src = fetchFromGitHub {
13     owner = "simdutf";
14     repo = "simdutf";
15     rev = "v${finalAttrs.version}";
16     hash = "sha256-DJCr+QoCmN0wJiXH+mv4g/zJYFfgJDGw0l6pzPriBVs=";
17   };
19   # Fix build on darwin
20   postPatch = ''
21     substituteInPlace tools/CMakeLists.txt --replace "-Wl,--gc-sections" ""
22   '';
24   nativeBuildInputs = [
25     cmake
26   ];
28   buildInputs = [
29     libiconv
30   ];
32   meta = with lib; {
33     description = "Unicode routines validation and transcoding at billions of characters per second";
34     homepage = "https://github.com/simdutf/simdutf";
35     license = with licenses; [ asl20 mit ];
36     maintainers = with maintainers; [ rewine ];
37     mainProgram = "simdutf";
38     platforms = platforms.all;
39   };