Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 36 lines 879 B view raw
1{ 2 stdenv, 3 lib, 4 fetchFromGitHub, 5 cmake, 6 enableStatic ? stdenv.hostPlatform.isStatic, 7}: 8 9stdenv.mkDerivation rec { 10 pname = "double-conversion"; 11 version = "3.3.1"; 12 13 src = fetchFromGitHub { 14 owner = "google"; 15 repo = "double-conversion"; 16 rev = "v${version}"; 17 sha256 = "sha256-M80H+azCzQYa4/gBLWv5GNNhEuHsH7LbJ/ajwmACnrM="; 18 }; 19 20 nativeBuildInputs = [ cmake ]; 21 22 cmakeFlags = lib.optional (!enableStatic) "-DBUILD_SHARED_LIBS=ON"; 23 24 # Case sensitivity issue 25 preConfigure = lib.optionalString stdenv.hostPlatform.isDarwin '' 26 rm BUILD 27 ''; 28 29 meta = with lib; { 30 description = "Binary-decimal and decimal-binary routines for IEEE doubles"; 31 homepage = "https://github.com/google/double-conversion"; 32 license = licenses.bsd3; 33 platforms = platforms.unix ++ platforms.windows; 34 maintainers = with maintainers; [ abbradar ]; 35 }; 36}