Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 cmake, 6}: 7 8stdenv.mkDerivation (finalAttrs: { 9 pname = "fast-float"; 10 version = "8.0.2"; 11 12 src = fetchFromGitHub { 13 owner = "fastfloat"; 14 repo = "fast_float"; 15 rev = "v${finalAttrs.version}"; 16 hash = "sha256-lKEzRYKdpjsqixC9WBoILccqB2ZkUtPUzT4Q4+j0oac="; 17 }; 18 19 nativeBuildInputs = [ cmake ]; 20 21 meta = { 22 description = "Fast and exact implementation of the C++ from_chars functions for number types"; 23 homepage = "https://github.com/fastfloat/fast_float"; 24 license = with lib.licenses; [ 25 asl20 26 boost 27 mit 28 ]; 29 maintainers = with lib.maintainers; [ wegank ]; 30 platforms = lib.platforms.all; 31 }; 32})