chore: update Nix flake and setup mise for toolchains

This commit is contained in:
izzy 2026-02-17 19:24:22 +00:00
parent 1243f88b21
commit 2044ff4819
No known key found for this signature in database
3 changed files with 22 additions and 9 deletions

View File

@ -1,16 +1,13 @@
{ { pkgs ? import (fetchTarball {
pkgs ? import <nixpkgs> { }, url = "https://github.com/NixOS/nixpkgs/archive/77ef7a29d276c6d8303aece3444d61118ef71ac2.tar.gz";
sha256 = "0pm4l48jq8plzrrrisimahxqlcpx7qqq9c99hylmf7p3zlc3phsy";
}) {},
}: }:
pkgs.mkShell rec { pkgs.mkShell rec {
buildInputs = [ buildInputs = with pkgs; [
# Tools # Tools
pkgs.git pkgs.mise
pkgs.gh
# Node
pkgs.nodejs
pkgs.nodejs.pkgs.pnpm
# Electron # Electron
(pkgs.writeShellScriptBin "electron-nix" '' (pkgs.writeShellScriptBin "electron-nix" ''
@ -29,5 +26,15 @@ pkgs.mkShell rec {
pkgs.flatpak-builder pkgs.flatpak-builder
pkgs.elfutils pkgs.elfutils
# flatpak remote-add --if-not-exists --user flathub https://dl.flathub.org/repo/flathub.flatpakrepo # flatpak remote-add --if-not-exists --user flathub https://dl.flathub.org/repo/flathub.flatpakrepo
(writeShellScriptBin "fish" ''
exec ${pkgs.fish}/bin/fish -C 'mise activate fish | source' "$@"
'')
]; ];
shellHook = ''
export ELECTRON_OVERRIDE_DIST_PATH="${pkgs.electron}/bin"
export MISE_NODE_COMPILE=false
eval "$(mise activate bash)"
'';
} }

4
mise.toml Normal file
View File

@ -0,0 +1,4 @@
[tools]
node = "25.4.0"
pnpm = "10.28.1"
gh = "2.25.0"

View File

@ -1,7 +1,9 @@
nodeLinker: hoisted nodeLinker: hoisted
onlyBuiltDependencies: onlyBuiltDependencies:
- bufferutil
- electron - electron
- electron-winstaller - electron-winstaller
- esbuild - esbuild
- register-scheme - register-scheme
- utf-8-validate