nixpkgs/pkgs/applications/misc/kemai/default.nix

71 lines
1.5 KiB
Nix
Raw Normal View History

{ lib
, stdenv
, fetchFromGitHub
2023-10-15 20:49:08 +02:00
, fetchpatch
, cmake
, magic-enum
2023-10-15 20:49:08 +02:00
, range-v3
, spdlog
, qtbase
, qtconnectivity
, qttools
, qtlanguageserver
2023-10-15 20:48:23 +02:00
, qtwayland
, wrapQtAppsHook
, libXScrnSaver
, nix-update-script
}:
stdenv.mkDerivation rec {
pname = "kemai";
2023-10-15 20:49:08 +02:00
version = "0.10.0";
src = fetchFromGitHub {
owner = "AlexandrePTJ";
repo = "kemai";
rev = version;
2023-10-15 20:49:08 +02:00
hash = "sha256-wclBAgeDyAIw/nGF6lzIwbwdoZMBTu+tjxsnIxIkODM=";
};
2023-10-15 20:49:08 +02: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=";
})
];
buildInputs = [
qtbase
qtconnectivity
qttools
qtlanguageserver
libXScrnSaver
magic-enum
2023-10-15 20:49:08 +02:00
range-v3
spdlog
2023-10-15 20:48:23 +02:00
] ++ lib.optional stdenv.hostPlatform.isLinux qtwayland;
2023-10-15 20:49:08 +02:00
cmakeFlags = [
"-DFETCHCONTENT_FULLY_DISCONNECTED=ON"
"-DFETCHCONTENT_QUIET=OFF"
"-DFETCHCONTENT_TRY_FIND_PACKAGE_MODE=ALWAYS"
];
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 20:49:08 +02:00
broken = stdenv.isDarwin;
2023-10-15 20:48:31 +02:00
mainProgram = "Kemai";
};
}