summaryrefslogtreecommitdiff
path: root/archived/projt-launcher/ci/default.nix
blob: 48fa4bcd2931ad739ed2bc667dea19dc5eee0730 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
# ProjT Launcher CI Configuration
# This Nix expression provides a development environment and build dependencies
# for the ProjT Launcher project

{
  system ? builtins.currentSystem,
}:

let
  nixpkgs = import <nixpkgs> { inherit system; };
  pkgs = nixpkgs;
in

rec {
  # Development environment with all build dependencies
  devEnv = pkgs.mkShell {
    buildInputs = with pkgs; [
      # Build tools
      cmake
      ninja
      pkg-config

      # Compilers
      gcc
      clang

      # Qt6 dependencies
      qt6.full
      qt6.base
      qt6.declarative
      qt6.multimedia
      qt6.tools

      # Other dependencies
      zlib
      libxkbcommon

      # Code quality tools
      clang-tools
      cmake-format

      # Testing
      gtest
    ];

    shellHook = ''
      echo "ProjT Launcher development environment loaded"
      echo "Available: cmake, ninja, qt6, gcc, clang"
    '';
  };

  # Build configuration for CI
  buildConfig = {
    buildType = "Release";
    enableTesting = true;
    enableLTO = true;
  };

  # Test environment
  testEnv = pkgs.mkShell {
    buildInputs = with pkgs; [
      cmake
      ninja
      qt6.full
      gtest
    ];
  };
}