simdutf: build shared libs (#484185)
This commit is contained in:
@@ -4,6 +4,9 @@
|
||||
fetchFromGitHub,
|
||||
cmake,
|
||||
libiconv,
|
||||
nix-update-script,
|
||||
testers,
|
||||
validatePkgConfig,
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
@@ -22,14 +25,27 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
substituteInPlace tools/CMakeLists.txt --replace "-Wl,--gc-sections" ""
|
||||
'';
|
||||
|
||||
cmakeFlags = [
|
||||
(lib.cmakeBool "BUILD_SHARED_LIBS" (!stdenv.hostPlatform.isStatic))
|
||||
];
|
||||
|
||||
nativeBuildInputs = [
|
||||
cmake
|
||||
validatePkgConfig
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
libiconv
|
||||
];
|
||||
|
||||
passthru = {
|
||||
updateScript = nix-update-script { };
|
||||
|
||||
tests.pkg-config = testers.hasPkgConfigModules {
|
||||
package = finalAttrs.finalPackage;
|
||||
};
|
||||
};
|
||||
|
||||
meta = {
|
||||
description = "Unicode routines validation and transcoding at billions of characters per second";
|
||||
homepage = "https://github.com/simdutf/simdutf";
|
||||
@@ -38,7 +54,7 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
mit
|
||||
];
|
||||
maintainers = with lib.maintainers; [ wineee ];
|
||||
mainProgram = "simdutf";
|
||||
pkgConfigModules = [ "simdutf" ];
|
||||
platforms = lib.platforms.all;
|
||||
};
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user