Skip to content

Commit 3adc162

Browse files
committed
1 parent a78a226 commit 3adc162

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

pkgs/by-name/ma/magic-enum/package.nix

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,16 @@
44
stdenv,
55
cmake,
66
nix-update-script,
7-
testers,
87
}:
9-
stdenv.mkDerivation rec {
8+
stdenv.mkDerivation (finalAttrs: {
109
pname = "magic-enum";
11-
version = "0.9.6";
10+
version = "0.9.7";
1211

1312
src = fetchFromGitHub {
1413
owner = "Neargye";
1514
repo = "magic_enum";
16-
tag = "v${version}";
17-
hash = "sha256-1pO9FWd0InXqg8+lwRF3YNFTAeVLjqoI9v15LjWxnZY=";
15+
tag = "v${finalAttrs.version}";
16+
hash = "sha256-P6fl/dcGOSE1lTJwZlimbvsTPelHwdQdZr18H4Zji20=";
1817
};
1918

2019
nativeBuildInputs = [ cmake ];
@@ -23,8 +22,8 @@ stdenv.mkDerivation rec {
2322
# the cmake package does not handle absolute CMAKE_INSTALL_INCLUDEDIR correctly
2423
# (setting it to an absolute path causes include files to go to $out/$out/include,
2524
# because the absolute path is interpreted with root at $out).
26-
"-DCMAKE_INSTALL_INCLUDEDIR=include"
27-
"-DCMAKE_INSTALL_LIBDIR=lib"
25+
(lib.cmakeFeature "CMAKE_INSTALL_INCLUDEDIR" "include")
26+
(lib.cmakeFeature "CMAKE_INSTALL_LIBDIR" "lib")
2827
];
2928

3029
passthru = {
@@ -34,8 +33,8 @@ stdenv.mkDerivation rec {
3433
meta = {
3534
description = "Static reflection for enums (to string, from string, iteration) for modern C++";
3635
homepage = "https://github.com/Neargye/magic_enum";
37-
changelog = "https://github.com/Neargye/magic_enum/releases/tag/v${version}";
36+
changelog = "https://github.com/Neargye/magic_enum/releases/tag/v${finalAttrs.version}";
3837
license = lib.licenses.mit;
3938
maintainers = with lib.maintainers; [ Alper-Celik ];
4039
};
41-
}
40+
})

0 commit comments

Comments
 (0)