diff options
Diffstat (limited to 'nixpkgs/pkgs/development/libraries/fmt')
-rw-r--r-- | nixpkgs/pkgs/development/libraries/fmt/default.nix | 28 |
1 files changed, 27 insertions, 1 deletions
diff --git a/nixpkgs/pkgs/development/libraries/fmt/default.nix b/nixpkgs/pkgs/development/libraries/fmt/default.nix index 5f810ecbe5ed..4c439717bacd 100644 --- a/nixpkgs/pkgs/development/libraries/fmt/default.nix +++ b/nixpkgs/pkgs/development/libraries/fmt/default.nix @@ -1,5 +1,14 @@ -{ lib, stdenv, fetchFromGitHub, fetchpatch, cmake +{ lib +, stdenv +, fetchFromGitHub, fetchpatch +, cmake , enableShared ? !stdenv.hostPlatform.isStatic + +# tests +, mpd +, openimageio +, fcitx5 +, spdlog }: let @@ -27,6 +36,10 @@ let doCheck = true; + passthru.tests = { + inherit mpd openimageio fcitx5 spdlog; + }; + meta = with lib; { description = "Small, safe and fast formatting library"; longDescription = '' @@ -34,6 +47,7 @@ let used as a fast and safe alternative to printf and IOStreams. ''; homepage = "https://fmt.dev/"; + changelog = "https://github.com/fmtlib/fmt/blob/${version}/ChangeLog.rst"; downloadPage = "https://github.com/fmtlib/fmt/"; maintainers = [ maintainers.jdehaas ]; license = licenses.mit; @@ -51,4 +65,16 @@ in version = "9.1.0"; sha256 = "sha256-rP6ymyRc7LnKxUXwPpzhHOQvpJkpnRFOt2ctvUNlYI0="; }; + + fmt_10 = generic { + version = "10.0.0"; + sha256 = "sha256-sVY2TVPS/Zx32p5XIYR6ghqN4kOZexzH7Cr+y8sZXK8="; + patches = [ + # fixes a test failure on pkgsMusl.fmt + (fetchpatch { + url = "https://github.com/fmtlib/fmt/commit/eaa6307691a9edb9e2f2eacf70500fc6989b416c.diff"; + hash = "sha256-PydnmOn/o9DexBViFGUUAO9KFjVS6CN8GVDHcl/+K8g="; + }) + ]; + }; } |