From e736f2f0a456d5e5a9f80759014271c72e679970 Mon Sep 17 00:00:00 2001 From: Jacob Date: Mon, 5 Jan 2026 22:11:01 +0800 Subject: [PATCH] feat: nix shell for nixos deving tldr run one command and it loads all the packages needed to compile onelauncher/oneclient --- shell.nix | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 shell.nix diff --git a/shell.nix b/shell.nix new file mode 100644 index 00000000..be8b1bec --- /dev/null +++ b/shell.nix @@ -0,0 +1,38 @@ +let + rust-overlay = builtins.fetchTarball "https://github.com/oxalica/rust-overlay/archive/master.tar.gz"; + pkgs = import { + overlays = [ + (import rust-overlay) + (_: prev: { + my-rust-toolchain = prev.rust-bin.fromRustupToolchainFile ./rust-toolchain.toml; + }) + ]; + }; +in +pkgs.mkShell { + strictDeps = true; + nativeBuildInputs = with pkgs; [ + pkg-config + gobject-introspection + rustup + cargo-tauri + nodejs + pnpm + my-rust-toolchain + ]; + + buildInputs = with pkgs; [ + at-spi2-atk + atkmm + cairo + gdk-pixbuf + glib + gtk3 + harfbuzz + librsvg + libsoup_3 + pango + webkitgtk_4_1 + openssl + ]; +}