Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ stdenv, lib, fetchFromGitHub, cmake }: 2 3stdenv.mkDerivation rec { 4 pname = "double-conversion"; 5 version = "3.3.0"; 6 7 src = fetchFromGitHub { 8 owner = "google"; 9 repo = "double-conversion"; 10 rev = "v${version}"; 11 sha256 = "sha256-DkMoHHoHwV4p40IINEqEPzKsCa0LHrJAFw2Yftw7zHo="; 12 }; 13 14 nativeBuildInputs = [ cmake ]; 15 16 cmakeFlags = [ "-DBUILD_SHARED_LIBS=ON" ]; 17 18 # Case sensitivity issue 19 preConfigure = lib.optionalString stdenv.isDarwin '' 20 rm BUILD 21 ''; 22 23 meta = with lib; { 24 description = "Binary-decimal and decimal-binary routines for IEEE doubles"; 25 homepage = "https://github.com/google/double-conversion"; 26 license = licenses.bsd3; 27 platforms = platforms.unix; 28 maintainers = with maintainers; [ abbradar ]; 29 }; 30}