-
Notifications
You must be signed in to change notification settings - Fork 2
/
flake.nix
50 lines (46 loc) · 1.23 KB
/
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
{
description = "A flake for building VMmanager";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-23.05";
flake-utils.url = "github:numtide/flake-utils";
vmd = {
url = "github:tiiuae/vmd";
inputs.nixpkgs.follows = "nixpkgs";
inputs.flake-utils.follows = "flake-utils";
};
};
outputs = {
self,
nixpkgs,
flake-utils,
vmd,
}: let
systems = with flake-utils.lib.system; [
x86_64-linux
aarch64-linux
];
in
flake-utils.lib.eachSystem systems (system: let
pkgs = nixpkgs.legacyPackages.${system};
in {
packages.vmmanager = pkgs.libsForQt5.callPackage ./vmmanager.nix {
vmd-client = vmd.packages.${system}.vmd-client;
};
packages.default = self.packages.${system}.vmmanager;
# Development shell with Qt Creator, enter with `nix develop`
devShell = pkgs.mkShell {
buildInputs = with pkgs; [
libsForQt5.qmake
libsForQt5.qtbase
libsForQt5.qtdeclarative
libsForQt5.qtwayland
qtcreator
];
};
# Allows formatting files with `nix fmt`
formatter = pkgs.alejandra;
})
// {
nixosModules.vmmanager = import ./nixos-modules/vmmanager.nix;
};
}