diff --git a/.envrc b/.envrc new file mode 100644 index 0000000..4a4726a --- /dev/null +++ b/.envrc @@ -0,0 +1 @@ +use_nix diff --git a/.gitignore b/.gitignore index fe043c5..b7d569d 100644 --- a/.gitignore +++ b/.gitignore @@ -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 diff --git a/shell.nix b/shell.nix new file mode 100644 index 0000000..281eb8e --- /dev/null +++ b/shell.nix @@ -0,0 +1,17 @@ +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/cff40eaf67b2a24b92296894608bcff305c675fc"; + pkgs = import nixpkgs { config = {}; overlays = []; }; + +in + pkgs.mkShellNoCC { + nativeBuildInputs = with pkgs.buildPackages; [ + wails + pnpm + vite + ]; + buildInputs = with pkgs.buildPackages; [ + glib-networking + ]; + }