-
-
Notifications
You must be signed in to change notification settings - Fork 508
/
flake.nix
75 lines (66 loc) · 1.85 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
66
67
68
69
70
71
72
73
74
75
{
description = "Nix Flake for Thrive Development";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
flake-utils.url = "github:numtide/flake-utils";
# PR for godot4-mono 4.2.1 https://github.com/NixOS/nixpkgs/pull/285941
# TODO: switch to master once merged
nixpkgs-godot.url = "github:GameDungeon/nixpkgs/Godot-4.2.2";
};
outputs = {
self,
nixpkgs,
nixpkgs-godot,
flake-utils,
}:
flake-utils.lib.eachDefaultSystem (
system: let
pkgs = import nixpkgs {inherit system;};
pkgs-godot = import nixpkgs-godot {inherit system;};
fhs = pkgs.buildFHSUserEnv {
name = "fhs-shell";
targetPkgs = pkgs:
with pkgs; [
# Godot
dotnet-sdk_8
((pkgs-godot.callPackage "${nixpkgs-godot}/pkgs/development/tools/godot/4/mono" {}).override {
withTouch = false;
withDebug = "yes"; # Set to yes if you wish to do profiling
})
# For compiling native libraries
cmake
clang_14
lld_17
# For packaging manually
zip
p7zip
# For Localization
poedit
gettext
# Profiling
flamegraph
# Runtime dependencies
xorg.libX11
xorg.libXcursor
xorg.libXext
fontconfig
libxkbcommon
xorg.libXrandr
xorg.libXrender
xorg.libXinerama
xorg.libXi
mesa
vulkan-loader
vulkan-headers
libglvnd
dbus
alsaLib
pulseaudio
icu
];
};
in {
devShell = fhs.env;
}
);
}