2024-09-19 14:19:46 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
stdenv,
|
|
|
|
fetchFromGitHub,
|
|
|
|
cmake,
|
2024-02-07 01:22:34 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
|
|
pname = "fast-float";
|
2024-09-19 14:19:46 +00:00
|
|
|
version = "6.1.6";
|
2024-02-07 01:22:34 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "fastfloat";
|
|
|
|
repo = "fast_float";
|
|
|
|
rev = "v${finalAttrs.version}";
|
2024-09-19 14:19:46 +00:00
|
|
|
hash = "sha256-MEJMPQZZZhOFiKlPAKIi0zVzaJBvjAlbSyg3wLOQ1fg=";
|
2024-02-07 01:22:34 +00:00
|
|
|
};
|
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
nativeBuildInputs = [ cmake ];
|
2024-02-07 01:22:34 +00:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Fast and exact implementation of the C++ from_chars functions for number types";
|
|
|
|
homepage = "https://github.com/fastfloat/fast_float";
|
2024-09-19 14:19:46 +00:00
|
|
|
license = with lib.licenses; [
|
|
|
|
asl20
|
|
|
|
boost
|
|
|
|
mit
|
|
|
|
];
|
2024-02-07 01:22:34 +00:00
|
|
|
maintainers = with lib.maintainers; [ wegank ];
|
|
|
|
platforms = lib.platforms.all;
|
|
|
|
};
|
|
|
|
})
|