Skip to content

Commit a322253

Browse files
Create a devshell for nix user
NixOS/nix allow one to create a dev shell which automatically loads in all dependencies when entering the projects directory This commit adds such a shell
1 parent 26f8a7e commit a322253

File tree

3 files changed

+21
-0
lines changed

3 files changed

+21
-0
lines changed

.envrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
use_nix

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ dist
77
# Specifically allow the provided code workspace with the multi-root workaround
88
!.vscode/SatisfactoryModManager.code-workspace
99

10+
# Devtools downloaded by direnv
11+
.direnv
12+
1013
# Created by https://www.toptal.com/developers/gitignore/api/goland+all,go,visualstudiocode
1114
# Edit at https://www.toptal.com/developers/gitignore?templates=goland+all,go,visualstudiocode
1215

shell.nix

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
let
2+
# This is the commit smm was added to nixpkgs, somewhen after this, something broke packaging.
3+
# TODO: fix the build failure on more recent versions and then update the hash to the latest tag
4+
nixpkgs = fetchTarball "https://github.com/NixOS/nixpkgs/tarball/cff40eaf67b2a24b92296894608bcff305c675fc";
5+
pkgs = import nixpkgs { config = {}; overlays = []; };
6+
7+
in
8+
pkgs.mkShellNoCC {
9+
nativeBuildInputs = with pkgs.buildPackages; [
10+
wails
11+
pnpm
12+
vite
13+
];
14+
buildInputs = with pkgs.buildPackages; [
15+
glib-networking
16+
];
17+
}

0 commit comments

Comments
 (0)