From aba73f3de32efa5019f56bfb8a84dd4c5264db0c Mon Sep 17 00:00:00 2001 From: Gaetan Lepage Date: Sat, 29 Jun 2024 18:35:42 +0200 Subject: magic-enum: 0.9.5 -> 0.9.6 Diff: https://github.com/Neargye/magic_enum/compare/refs/tags/v0.9.5...v0.9.6 Changelog: https://github.com/Neargye/magic_enum/releases/tag/v0.9.6 --- pkgs/development/libraries/magic-enum/default.nix | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/pkgs/development/libraries/magic-enum/default.nix b/pkgs/development/libraries/magic-enum/default.nix index ac8afa938ea81..7f65505793c74 100644 --- a/pkgs/development/libraries/magic-enum/default.nix +++ b/pkgs/development/libraries/magic-enum/default.nix @@ -2,16 +2,19 @@ , lib , stdenv , cmake +, nix-update-script +, testers +, magic-enum }: stdenv.mkDerivation rec{ pname = "magic-enum"; - version = "0.9.5"; + version = "0.9.6"; src = fetchFromGitHub { owner = "Neargye"; repo = "magic_enum"; rev = "refs/tags/v${version}"; - hash = "sha256-Q82HdlEMXpiGISnqdjFd0rxiLgsobsoWiqqGLawu2pM="; + hash = "sha256-1pO9FWd0InXqg8+lwRF3YNFTAeVLjqoI9v15LjWxnZY="; }; nativeBuildInputs = [ cmake ]; @@ -24,11 +27,16 @@ stdenv.mkDerivation rec{ "-DCMAKE_INSTALL_LIBDIR=lib" ]; - meta = with lib;{ + passthru = { + updateScript = nix-update-script { }; + tests.version = testers.testVersion { package = magic-enum; }; + }; + + meta = { description = "Static reflection for enums (to string, from string, iteration) for modern C++"; homepage = "https://github.com/Neargye/magic_enum"; changelog = "https://github.com/Neargye/magic_enum/releases/tag/v${version}"; - license = licenses.mit; - maintainers = with maintainers; [ Alper-Celik ]; + license = lib.licenses.mit; + maintainers = with lib.maintainers; [ Alper-Celik ]; }; } -- cgit 1.4.1