-
Notifications
You must be signed in to change notification settings - Fork 92
Expand file tree
/
Copy pathshell.nix
More file actions
26 lines (24 loc) · 726 Bytes
/
shell.nix
File metadata and controls
26 lines (24 loc) · 726 Bytes
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
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/
'';
}