Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/maybeanerd/booktracker. a multi platform application and server to track your book reading journey
Something went wrong. Try again.
booktracker flake.nix
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465{ inputs = { nixpkgs.url = "nixpkgs"; flake-utils.url = "github:numtide/flake-utils"; rust-overlay.url = "github:oxalica/rust-overlay"; };
outputs = { self, nixpkgs, flake-utils, rust-overlay }: flake-utils.lib.eachDefaultSystem (system: let pkgs = import nixpkgs { inherit system; overlays = [ rust-overlay.overlays.default ]; };
toolchain = pkgs.rust-bin.fromRustupToolchainFile ./rust-toolchain.toml;
packages = with pkgs; [ nodejs_24 cargo cargo-tauri toolchain rust-analyzer-unwrapped nodePackages.pnpm ];
nativeBuildPackages = with pkgs; [ pkg-config dbus openssl glib gtk3 librsvg ];
libraries = with pkgs; [ gtk3 cairo gdk-pixbuf glib dbus openssl librsvg ];
in { devShells.default = pkgs.mkShell { buildInputs = packages; nativeBuildInputs = nativeBuildPackages;
shellHook = with pkgs; '' export LD_LIBRARY_PATH="${ lib.makeLibraryPath libraries }:$LD_LIBRARY_PATH" export OPENSSL_INCLUDE_DIR="${openssl.dev}/include/openssl" export OPENSSL_LIB_DIR="${openssl.out}/lib" export OPENSSL_ROOT_DIR="${openssl.out}" export RUST_SRC_PATH="${toolchain}/lib/rustlib/src/rust/library" ''; }; });}