ow-mod-man/nix/shell.nix
2024-07-03 20:03:17 -04:00

29 lines
597 B
Nix

{pkgs ? import <nixpkgs> {}}:
# NOTE(Spoonbaker): This doesn't include the overlay when using `nix-shell` instead of `nix shell`
pkgs.mkShell {
name = "owmods-shell";
buildInputs = with pkgs; [
rustc
cargo
clippy
rustfmt
nodejs
gcc
openssl
webkitgtk
glib-networking
pkg-config
libnotify
gtk3
libsoup
librsvg
cargo-tauri
typeshare
];
OPENSSL_LIB_DIR = "${pkgs.openssl.out}/lib";
OPENSSL_INCLUDE_DIR = "${pkgs.openssl.dev}/include";
shellHook = ''
export GIO_MODULE_DIR=${pkgs.glib-networking}/lib/gio/modules/
'';
}