diff options
| author | Aargh Rai <aargh.rai+git@gmail.com> | 2026-06-19 23:11:10 +0530 |
|---|---|---|
| committer | Aargh Rai <aargh.rai+git@gmail.com> | 2026-06-19 23:11:10 +0530 |
| commit | b5d53cd4210a74c65a42b6387dd78c4e5bc9c17f (patch) | |
| tree | 6f9c2e56b70a3a69d3c44d14e6947ffc07731136 /shell.nix | |
| parent | 058f12c699c9183f93f280ad7eb54c8a1b25f523 (diff) | |
license & uci
Diffstat (limited to 'shell.nix')
| -rw-r--r-- | shell.nix | 35 |
1 files changed, 33 insertions, 2 deletions
@@ -1,10 +1,41 @@ { pkgs ? import <nixpkgs> {} }: - +let + install_opt_deps = false; + libraries = with pkgs; [ + webkitgtk_4_1 + gtk3 + cairo + gdk-pixbuf + glib + dbus + openssl + librsvg + ]; +in pkgs.mkShell { packages = with pkgs; [ gcc + glib.dev + pango openssl pkg-config + clang-tools gnumake - ]; + ] ++ (if install_opt_deps then [ + dbus + gtk3 + libsoup_3 + webkitgtk_4_1 + librsvg + nodejs_22 + pnpm + cargo + rustc + rustup + ] else []); + RUST_SRC_PATH = if install_opt_deps then "${pkgs.rust.packages.stable.rustPlatform.rustLibSrc}" else ""; + shellHook = if install_opt_deps then '' + export LD_LIBRARY_PATH=${pkgs.lib.makeLibraryPath libraries}:$LD_LIBRARY_PATH + export XDG_DATA_DIRS=${pkgs.gsettings-desktop-schemas}/share/gsettings-schemas/${pkgs.gsettings-desktop-schemas.name}:${pkgs.gtk3}/share/gsettings-schemas/${pkgs.gtk3.name}:$XDG_DATA_DIRS + '' else ''; } |
