Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .envrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
use_nix
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ dist
# Specifically allow the provided code workspace with the multi-root workaround
!.vscode/SatisfactoryModManager.code-workspace

# Devtools downloaded by direnv
.direnv

# Created by https://www.toptal.com/developers/gitignore/api/goland+all,go,visualstudiocode
# Edit at https://www.toptal.com/developers/gitignore?templates=goland+all,go,visualstudiocode

Expand Down
26 changes: 26 additions & 0 deletions shell.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
let
# This is the commit smm was added to nixpkgs, somewhen after this, something broke packaging.
# TODO: fix the build failure on more recent versions and then update the hash to the latest tag
nixpkgs = fetchTarball "https://github.com/NixOS/nixpkgs/tarball/a7808b41c3cfd040fbe03e12a68654db3c02d5bc";
pkgs = import nixpkgs { config = {}; overlays = []; };

in
pkgs.mkShellNoCC {
nativeBuildInputs =
let
wails' = pkgs.wails.override { nodejs = pkgs.nodejs_20; };
in
with pkgs.buildPackages; [
wails'
pnpm_8
vite
wrapGAppsHook3
];
buildInputs = with pkgs.buildPackages; [
glib-networking
];

shellHook = ''
export GIO_MODULE_DIR=${pkgs.glib-networking}/lib/gio/modules/
'';
}
Loading