about summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorGaetan Lepage <gaetan@glepage.com>2024-06-29 18:35:42 +0200
committerGaetan Lepage <gaetan@glepage.com>2024-06-29 18:38:19 +0200
commitaba73f3de32efa5019f56bfb8a84dd4c5264db0c (patch)
treec3c6137f48a1dccdcc6d872b9badb9cc3efdff04 /pkgs
parent43f06ccf4c0af7d71ac99197d93ba4f7175a04f9 (diff)
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
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/development/libraries/magic-enum/default.nix18
1 files 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 ];
   };
 }