29 lines
668 B
Nix
29 lines
668 B
Nix
{ lib
|
|
, stdenv
|
|
, fetchFromGitHub
|
|
, cmake
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "fast-float";
|
|
version = "6.1.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "fastfloat";
|
|
repo = "fast_float";
|
|
rev = "v${finalAttrs.version}";
|
|
hash = "sha256-acaTUI+SWKSgmyJ+J4PzR5U7UtunbRiVuf5OsTf1Hko=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
cmake
|
|
];
|
|
|
|
meta = {
|
|
description = "Fast and exact implementation of the C++ from_chars functions for number types";
|
|
homepage = "https://github.com/fastfloat/fast_float";
|
|
license = with lib.licenses; [ asl20 boost mit ];
|
|
maintainers = with lib.maintainers; [ wegank ];
|
|
platforms = lib.platforms.all;
|
|
};
|
|
})
|