cpu_features: init at 0.9.0

This commit is contained in:
renesat
2024-09-05 23:33:19 +02:00
parent 4390614ac4
commit 178a8c7cd3
+36
View File
@@ -0,0 +1,36 @@
{
lib,
stdenv,
fetchFromGitHub,
cmake,
static ? stdenv.hostPlatform.isStatic,
}:
stdenv.mkDerivation rec {
pname = "cpu_features";
version = "0.9.0";
outputs = [
"out"
"dev"
];
src = fetchFromGitHub {
owner = "google";
repo = "cpu_features";
rev = "v${version}";
hash = "sha256-uXN5crzgobNGlLpbpuOxR+9QVtZKrWhxC/UjQEakJwk=";
};
nativeBuildInputs = [ cmake ];
cmakeFlags = [ "-DBUILD_SHARED_LIBS=${if static then "OFF" else "ON"}" ];
meta = with lib; {
description = "A cross platform C99 library to get cpu features at runtime";
homepage = "https://github.com/google/cpu_features";
license = licenses.asl20;
platforms = platforms.all;
maintainers = with maintainers; [ renesat ];
};
}