2023-05-03 13:36:42 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
2023-10-15 18:49:08 +00:00
|
|
|
, fetchpatch
|
2023-05-03 13:36:42 +00:00
|
|
|
, cmake
|
|
|
|
, magic-enum
|
2023-10-15 18:49:08 +00:00
|
|
|
, range-v3
|
2023-05-03 13:36:42 +00:00
|
|
|
, spdlog
|
|
|
|
, qtbase
|
|
|
|
, qtconnectivity
|
|
|
|
, qttools
|
|
|
|
, qtlanguageserver
|
2023-10-15 18:48:23 +00:00
|
|
|
, qtwayland
|
2023-05-03 13:36:42 +00:00
|
|
|
, wrapQtAppsHook
|
|
|
|
, libXScrnSaver
|
|
|
|
, nix-update-script
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "kemai";
|
2023-10-15 18:49:08 +00:00
|
|
|
version = "0.10.0";
|
2023-05-03 13:36:42 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "AlexandrePTJ";
|
|
|
|
repo = "kemai";
|
|
|
|
rev = version;
|
2023-10-15 18:49:08 +00:00
|
|
|
hash = "sha256-wclBAgeDyAIw/nGF6lzIwbwdoZMBTu+tjxsnIxIkODM=";
|
2023-05-03 13:36:42 +00:00
|
|
|
};
|
|
|
|
|
2023-10-15 18:49:08 +00:00
|
|
|
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=";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2023-05-03 13:36:42 +00:00
|
|
|
buildInputs = [
|
|
|
|
qtbase
|
|
|
|
qtconnectivity
|
|
|
|
qttools
|
|
|
|
qtlanguageserver
|
|
|
|
libXScrnSaver
|
|
|
|
magic-enum
|
2023-10-15 18:49:08 +00:00
|
|
|
range-v3
|
2023-05-03 13:36:42 +00:00
|
|
|
spdlog
|
2023-10-15 18:48:23 +00:00
|
|
|
] ++ lib.optional stdenv.hostPlatform.isLinux qtwayland;
|
2023-10-15 18:49:08 +00:00
|
|
|
cmakeFlags = [
|
|
|
|
"-DFETCHCONTENT_FULLY_DISCONNECTED=ON"
|
|
|
|
"-DFETCHCONTENT_QUIET=OFF"
|
|
|
|
"-DFETCHCONTENT_TRY_FIND_PACKAGE_MODE=ALWAYS"
|
|
|
|
];
|
2023-05-03 13:36:42 +00:00
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake wrapQtAppsHook ];
|
|
|
|
|
|
|
|
passthru = {
|
|
|
|
updateScript = nix-update-script { };
|
|
|
|
};
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Kimai desktop client written in QT6";
|
|
|
|
homepage = "https://github.com/AlexandrePTJ/kemai";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ poelzi ];
|
|
|
|
platforms = platforms.unix;
|
2023-10-15 18:49:08 +00:00
|
|
|
broken = stdenv.hostPlatform.isDarwin;
|
2023-10-15 18:48:31 +00:00
|
|
|
mainProgram = "Kemai";
|
2023-05-03 13:36:42 +00:00
|
|
|
};
|
|
|
|
}
|