3 , fetchFromGitHub, fetchpatch
5 , enableShared ? !stdenv.hostPlatform.isStatic
15 generic = { version, sha256, patches ? [ ] }:
20 outputs = [ "out" "dev" ];
22 src = fetchFromGitHub {
31 nativeBuildInputs = [ cmake ];
34 "-DBUILD_SHARED_LIBS=${if enableShared then "ON" else "OFF"}"
40 inherit mpd openimageio fcitx5 spdlog;
44 description = "Small, safe and fast formatting library";
46 fmt (formerly cppformat) is an open-source formatting library. It can be
47 used as a fast and safe alternative to printf and IOStreams.
49 homepage = "https://fmt.dev/";
50 changelog = "https://github.com/fmtlib/fmt/blob/${version}/ChangeLog.rst";
51 downloadPage = "https://github.com/fmtlib/fmt/";
52 maintainers = [ maintainers.jdehaas ];
53 license = licenses.mit;
54 platforms = platforms.all;
61 sha256 = "sha256-leb2800CwdZMJRWF5b1Y9ocK0jXpOX/nwo95icDf308=";
66 sha256 = "sha256-rP6ymyRc7LnKxUXwPpzhHOQvpJkpnRFOt2ctvUNlYI0=";
71 sha256 = "sha256-H9+1lEaHM12nzXSmo9m8S6527t+97e6necayyjCPm1A=";