Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
84 lines
1.6 KiB
Nix
84 lines
1.6 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
|
|
# buildInputs
|
|
libXScrnSaver,
|
|
magic-enum,
|
|
|
|
# nativeBuildInputs
|
|
qtbase,
|
|
qtconnectivity,
|
|
qtlanguageserver,
|
|
qttools,
|
|
range-v3,
|
|
spdlog,
|
|
qtwayland,
|
|
|
|
# nativeBuildInputs
|
|
cmake,
|
|
wrapQtAppsHook,
|
|
|
|
# passthru
|
|
nix-update-script,
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "kemai";
|
|
version = "0.11.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "AlexandrePTJ";
|
|
repo = "kemai";
|
|
tag = finalAttrs.version;
|
|
hash = "sha256-2Cyrd0fKaEHkDaKF8lFwuoLvl6553rp3ET2xLUUrTnk=";
|
|
};
|
|
|
|
postPatch = ''
|
|
substituteInPlace \
|
|
src/client/parser.cpp \
|
|
src/client/kimaiCache.cpp \
|
|
--replace-fail \
|
|
"#include <magic_enum.hpp>" \
|
|
"#include <magic_enum/magic_enum.hpp>"
|
|
'';
|
|
|
|
buildInputs = [
|
|
libXScrnSaver
|
|
magic-enum
|
|
qtbase
|
|
qtconnectivity
|
|
qtlanguageserver
|
|
qttools
|
|
range-v3
|
|
spdlog
|
|
]
|
|
++ lib.optional stdenv.hostPlatform.isLinux qtwayland;
|
|
|
|
cmakeFlags = [
|
|
(lib.cmakeBool "KEMAI_ENABLE_UPDATE_CHECK" false)
|
|
(lib.cmakeBool "KEMAI_BUILD_LOCAL_DEPENDENCIES" false)
|
|
];
|
|
|
|
nativeBuildInputs = [
|
|
cmake
|
|
wrapQtAppsHook
|
|
];
|
|
|
|
passthru = {
|
|
updateScript = nix-update-script { };
|
|
};
|
|
|
|
meta = {
|
|
description = "Kimai desktop client written in QT6";
|
|
homepage = "https://github.com/AlexandrePTJ/kemai";
|
|
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";
|
|
};
|
|
})
|