-
Notifications
You must be signed in to change notification settings - Fork 0
/
flake.nix
65 lines (54 loc) · 1.64 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
{
description = "Godot development environment";
inputs = {
flake-utils.url = "github:numtide/flake-utils";
nixpkgs.url = "nixpkgs/nixos-unstable";
nixpkgs-stable.url = "nixpkgs/nixos-23.05";
};
outputs = { self, nixpkgs, nixpkgs-stable, flake-utils }@inputs:
flake-utils.lib.eachDefaultSystem
(system:
let
pkgs = import nixpkgs {
inherit system;
overlays = [ (import ./overlays.nix { inherit inputs; }) ];
};
version = "0.1.0";
in
rec {
apps.nixos_template = flake-utils.lib.mkApp {
drv = self.packages.${system}.nixos_template;
};
packages.default = packages.nixos_template;
packages.nixos_template = pkgs.mkNixosPatch {
inherit version;
pname = "nixos_template";
src = packages.linux_template;
};
packages.linux_template = pkgs.mkGodot {
inherit version;
pname = "linux_template";
src = ./src;
preset = "linux"; # You need to create this preset in godot
};
packages.windows_template = pkgs.mkGodot {
inherit version;
pname = "windows_template";
src = ./src;
preset = "windows"; # You need to create this preset in godot
};
packages.export_templates = pkgs.export_templates;
devShell = pkgs.mkShell {
buildInputs = with pkgs; [
godot_4
];
};
}
) //
{
templates.default = {
description = "";
path = ./.;
};
};
}