anvil-editor: init at 0.4
[NixPkgs.git] / pkgs / applications / misc / kemai / default.nix
blob7ad3afc16ce57110bf77bcfed6f956aba9be2e70
1 { lib
2 , stdenv
3 , fetchFromGitHub
4 , fetchpatch
5 , cmake
6 , magic-enum
7 , range-v3
8 , spdlog
9 , qtbase
10 , qtconnectivity
11 , qttools
12 , qtlanguageserver
13 , qtwayland
14 , wrapQtAppsHook
15 , libXScrnSaver
16 , nix-update-script
19 stdenv.mkDerivation rec {
20   pname = "kemai";
21   version = "0.10.0";
23   src = fetchFromGitHub {
24     owner = "AlexandrePTJ";
25     repo = "kemai";
26     rev = version;
27     hash = "sha256-wclBAgeDyAIw/nGF6lzIwbwdoZMBTu+tjxsnIxIkODM=";
28   };
30   patches = [
31     # Backport the fix for an issue where LICENSE.txt ends up in /bin
32     # Remove in next release
33     (fetchpatch {
34       url = "https://github.com/AlexandrePTJ/kemai/commit/e279679dd7308efebe004252d168d7308f3b99ce.patch";
35       hash = "sha256-5cmRRMVATf4ul4HhaQKiE0yTN2qd+MfNFQzGTLLpOyg=";
36     })
37   ];
39   buildInputs = [
40     qtbase
41     qtconnectivity
42     qttools
43     qtlanguageserver
44     libXScrnSaver
45     magic-enum
46     range-v3
47     spdlog
48   ] ++ lib.optional stdenv.hostPlatform.isLinux qtwayland;
49   cmakeFlags = [
50     "-DFETCHCONTENT_FULLY_DISCONNECTED=ON"
51     "-DFETCHCONTENT_QUIET=OFF"
52     "-DFETCHCONTENT_TRY_FIND_PACKAGE_MODE=ALWAYS"
53   ];
55   nativeBuildInputs = [ cmake wrapQtAppsHook ];
57   passthru = {
58     updateScript = nix-update-script { };
59   };
61   meta = with lib; {
62     description = "Kimai desktop client written in QT6";
63     homepage = "https://github.com/AlexandrePTJ/kemai";
64     license = licenses.mit;
65     maintainers = with maintainers; [ poelzi ];
66     platforms   = platforms.unix;
67     broken = stdenv.hostPlatform.isDarwin;
68     mainProgram = "Kemai";
69   };