mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-07-14 06:00:33 +03:00
magic-enum: 0.9.6 -> 0.9.7 (#366438)
This commit is contained in:
commit
e58dd8c9bc
2 changed files with 47 additions and 40 deletions
|
@ -2,55 +2,62 @@
|
|||
lib,
|
||||
stdenv,
|
||||
fetchFromGitHub,
|
||||
fetchpatch,
|
||||
cmake,
|
||||
|
||||
# buildInputs
|
||||
libXScrnSaver,
|
||||
magic-enum,
|
||||
range-v3,
|
||||
spdlog,
|
||||
|
||||
# nativeBuildInputs
|
||||
qtbase,
|
||||
qtconnectivity,
|
||||
qttools,
|
||||
qtlanguageserver,
|
||||
qttools,
|
||||
range-v3,
|
||||
spdlog,
|
||||
qtwayland,
|
||||
|
||||
# nativeBuildInputs
|
||||
cmake,
|
||||
wrapQtAppsHook,
|
||||
libXScrnSaver,
|
||||
|
||||
# passthru
|
||||
nix-update-script,
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "kemai";
|
||||
version = "0.10.0";
|
||||
version = "0.11.1";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "AlexandrePTJ";
|
||||
repo = "kemai";
|
||||
rev = version;
|
||||
hash = "sha256-wclBAgeDyAIw/nGF6lzIwbwdoZMBTu+tjxsnIxIkODM=";
|
||||
tag = finalAttrs.version;
|
||||
hash = "sha256-2Cyrd0fKaEHkDaKF8lFwuoLvl6553rp3ET2xLUUrTnk=";
|
||||
};
|
||||
|
||||
patches = [
|
||||
# Backport the fix for an issue where LICENSE.txt ends up in /bin
|
||||
# Remove in next release
|
||||
(fetchpatch {
|
||||
url = "https://github.com/AlexandrePTJ/kemai/commit/e279679dd7308efebe004252d168d7308f3b99ce.patch";
|
||||
hash = "sha256-5cmRRMVATf4ul4HhaQKiE0yTN2qd+MfNFQzGTLLpOyg=";
|
||||
})
|
||||
];
|
||||
postPatch = ''
|
||||
substituteInPlace \
|
||||
src/client/parser.cpp \
|
||||
src/client/kimaiCache.cpp \
|
||||
--replace-fail \
|
||||
"#include <magic_enum.hpp>" \
|
||||
"#include <magic_enum/magic_enum.hpp>"
|
||||
'';
|
||||
|
||||
buildInputs = [
|
||||
qtbase
|
||||
qtconnectivity
|
||||
qttools
|
||||
qtlanguageserver
|
||||
libXScrnSaver
|
||||
magic-enum
|
||||
qtbase
|
||||
qtconnectivity
|
||||
qtlanguageserver
|
||||
qttools
|
||||
range-v3
|
||||
spdlog
|
||||
] ++ lib.optional stdenv.hostPlatform.isLinux qtwayland;
|
||||
|
||||
cmakeFlags = [
|
||||
"-DFETCHCONTENT_FULLY_DISCONNECTED=ON"
|
||||
"-DFETCHCONTENT_QUIET=OFF"
|
||||
"-DFETCHCONTENT_TRY_FIND_PACKAGE_MODE=ALWAYS"
|
||||
(lib.cmakeBool "KEMAI_ENABLE_UPDATE_CHECK" false)
|
||||
(lib.cmakeBool "KEMAI_BUILD_LOCAL_DEPENDENCIES" false)
|
||||
];
|
||||
|
||||
nativeBuildInputs = [
|
||||
|
@ -62,13 +69,14 @@ stdenv.mkDerivation rec {
|
|||
updateScript = nix-update-script { };
|
||||
};
|
||||
|
||||
meta = with lib; {
|
||||
meta = {
|
||||
description = "Kimai desktop client written in QT6";
|
||||
homepage = "https://github.com/AlexandrePTJ/kemai";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ poelzi ];
|
||||
platforms = platforms.unix;
|
||||
broken = stdenv.hostPlatform.isDarwin;
|
||||
changelog = "https://github.com/AlexandrePTJ/kemai/blob/${finalAttrs.version}/CHANGELOG.md";
|
||||
license = lib.licenses.mit;
|
||||
maintainers = with lib.maintainers; [ poelzi ];
|
||||
platforms = lib.platforms.unix;
|
||||
badPlatforms = [ lib.systems.inspect.patterns.isDarwin ];
|
||||
mainProgram = "Kemai";
|
||||
};
|
||||
}
|
||||
})
|
||||
|
|
|
@ -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 ];
|
||||
};
|
||||
}
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue