-
Notifications
You must be signed in to change notification settings - Fork 34
/
Copy pathflake.nix
31 lines (28 loc) · 1014 Bytes
/
flake.nix
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
{
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
};
outputs = { systems, nixpkgs, ... }@inputs:
let
eachSystem = f: nixpkgs.lib.genAttrs systems (system: f nixpkgs.legacyPackages.${system});
systems = [
"aarch64-darwin"
"aarch64-linux"
"x86_64-darwin"
"x86_64-linux"
];
in {
packages = eachSystem (pkgs: rec {
commander_wars = pkgs.kdePackages.callPackage ./distribution/commander_wars.nix {
pname = "commander_wars";
};
default = commander_wars;
});
devShells = eachSystem (pkgs: {
default = pkgs.mkShell (with pkgs; {
buildInputs = [ qt6.qtbase qt6.qtdeclarative qt6.qtmultimedia libressl ];
nativeBuildInputs = [ cmake pkg-config qt6.qttools ];
});
});
};
}