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

View file

@ -4,17 +4,16 @@
stdenv,
cmake,
nix-update-script,
testers,
}:
stdenv.mkDerivation rec {
stdenv.mkDerivation (finalAttrs: {
pname = "magic-enum";
version = "0.9.6";
version = "0.9.7";
src = fetchFromGitHub {
owner = "Neargye";
repo = "magic_enum";
tag = "v${version}";
hash = "sha256-1pO9FWd0InXqg8+lwRF3YNFTAeVLjqoI9v15LjWxnZY=";
tag = "v${finalAttrs.version}";
hash = "sha256-P6fl/dcGOSE1lTJwZlimbvsTPelHwdQdZr18H4Zji20=";
};
nativeBuildInputs = [ cmake ];
@ -23,8 +22,8 @@ stdenv.mkDerivation rec {
# 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,
# because the absolute path is interpreted with root at $out).
"-DCMAKE_INSTALL_INCLUDEDIR=include"
"-DCMAKE_INSTALL_LIBDIR=lib"
(lib.cmakeFeature "CMAKE_INSTALL_INCLUDEDIR" "include")
(lib.cmakeFeature "CMAKE_INSTALL_LIBDIR" "lib")
];
passthru = {
@ -34,8 +33,8 @@ stdenv.mkDerivation rec {
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}";
changelog = "https://github.com/Neargye/magic_enum/releases/tag/v${finalAttrs.version}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ Alper-Celik ];
};
}
})