diff options
Diffstat (limited to 'pkgs/by-name/ma/magic-enum/package.nix')
| -rw-r--r-- | pkgs/by-name/ma/magic-enum/package.nix | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/pkgs/by-name/ma/magic-enum/package.nix b/pkgs/by-name/ma/magic-enum/package.nix index 0b9ffcd9dae5..c4bae5ef975f 100644 --- a/pkgs/by-name/ma/magic-enum/package.nix +++ b/pkgs/by-name/ma/magic-enum/package.nix @@ -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 ]; }; -} +}) |
