Gaetan Lepage 2024-12-19 07:48:47 +01:00
parent a78a226cec
commit 3adc16211c

View file

@ -4,17 +4,16 @@
stdenv, stdenv,
cmake, cmake,
nix-update-script, nix-update-script,
testers,
}: }:
stdenv.mkDerivation rec { stdenv.mkDerivation (finalAttrs: {
pname = "magic-enum"; pname = "magic-enum";
version = "0.9.6"; version = "0.9.7";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "Neargye"; owner = "Neargye";
repo = "magic_enum"; repo = "magic_enum";
tag = "v${version}"; tag = "v${finalAttrs.version}";
hash = "sha256-1pO9FWd0InXqg8+lwRF3YNFTAeVLjqoI9v15LjWxnZY="; hash = "sha256-P6fl/dcGOSE1lTJwZlimbvsTPelHwdQdZr18H4Zji20=";
}; };
nativeBuildInputs = [ cmake ]; nativeBuildInputs = [ cmake ];
@ -23,8 +22,8 @@ stdenv.mkDerivation rec {
# the cmake package does not handle absolute CMAKE_INSTALL_INCLUDEDIR correctly # the cmake package does not handle absolute CMAKE_INSTALL_INCLUDEDIR correctly
# (setting it to an absolute path causes include files to go to $out/$out/include, # (setting it to an absolute path causes include files to go to $out/$out/include,
# because the absolute path is interpreted with root at $out). # because the absolute path is interpreted with root at $out).
"-DCMAKE_INSTALL_INCLUDEDIR=include" (lib.cmakeFeature "CMAKE_INSTALL_INCLUDEDIR" "include")
"-DCMAKE_INSTALL_LIBDIR=lib" (lib.cmakeFeature "CMAKE_INSTALL_LIBDIR" "lib")
]; ];
passthru = { passthru = {
@ -34,8 +33,8 @@ stdenv.mkDerivation rec {
meta = { meta = {
description = "Static reflection for enums (to string, from string, iteration) for modern C++"; description = "Static reflection for enums (to string, from string, iteration) for modern C++";
homepage = "https://github.com/Neargye/magic_enum"; homepage = "https://github.com/Neargye/magic_enum";
changelog = "https://github.com/Neargye/magic_enum/releases/tag/v${version}"; changelog = "https://github.com/Neargye/magic_enum/releases/tag/v${finalAttrs.version}";
license = lib.licenses.mit; license = lib.licenses.mit;
maintainers = with lib.maintainers; [ Alper-Celik ]; maintainers = with lib.maintainers; [ Alper-Celik ];
}; };
} })