2023-05-03 15:36:42 +02:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, cmake
|
|
|
|
, magic-enum
|
|
|
|
, spdlog
|
|
|
|
, qtbase
|
|
|
|
, qtconnectivity
|
|
|
|
, qttools
|
|
|
|
, qtlanguageserver
|
2023-10-15 20:48:23 +02:00
|
|
|
, qtwayland
|
2023-05-03 15:36:42 +02:00
|
|
|
, wrapQtAppsHook
|
|
|
|
, libXScrnSaver
|
|
|
|
, nix-update-script
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "kemai";
|
|
|
|
version = "0.9.2";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "AlexandrePTJ";
|
|
|
|
repo = "kemai";
|
|
|
|
rev = version;
|
|
|
|
hash = "sha256-PDjNO2iMPK0J3TSHVZ/DW3W0GkdB8yNZYoTGEd2snac=";
|
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
qtbase
|
|
|
|
qtconnectivity
|
|
|
|
qttools
|
|
|
|
qtlanguageserver
|
|
|
|
libXScrnSaver
|
|
|
|
magic-enum
|
|
|
|
spdlog
|
2023-10-15 20:48:23 +02:00
|
|
|
] ++ lib.optional stdenv.hostPlatform.isLinux qtwayland;
|
2023-05-03 15:36:42 +02:00
|
|
|
cmakeFlags = [ "-DUSE_CONAN=OFF" ];
|
|
|
|
patches = [ ./000-cmake-disable-conan.diff ];
|
|
|
|
|
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|