You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm not sure where else to ask and I can't get past this issue. I want open a nix develop devshell without building the project, but I want the project to build with nix run and nix build.
{inputs={nixpkgs={url="github:nixos/nixpkgs/nixos-unstable";};flake-parts.url="github:hercules-ci/flake-parts";rust-overlay.url="github:oxalica/rust-overlay";};outputs=inputs:
inputs.flake-parts.lib.mkFlake{inheritinputs;}{systems=["x86_64-linux"];perSystem={config,self',pkgs,lib,system, ... }:
letruntimeDeps=withpkgs;[];buildDeps=withpkgs;[clanglldlldbpkg-configrustPlatform.bindgenHook];devDeps=withpkgs;[cargo-msrvcargo-nextestclanggdblldlldbsurrealdb];panamaxDeps=withpkgs;[panamax];cargoToml=builtins.fromTOML(builtins.readFile./Cargo.toml);msrv=cargoToml.package.rust-version;rustPackage=features:
(pkgs.makeRustPlatform{cargo=pkgs.rust-bin.stable.latest.minimal;rustc=pkgs.rust-bin.stable.latest.minimal;}).buildRustPackage{inherit(cargoToml.package)nameversion;src=./.;cargoLock.lockFile=./Cargo.lock;buildFeatures=features;buildInputs=runtimeDeps;nativeBuildInputs=buildDeps;# Uncomment if your cargo tests require networking or otherwise# don't play nicely with the nix build sandbox:# doCheck = false;};mkDevShell=rustc:
pkgs.mkShell{shellHook='' export RUST_SRC_PATH=${pkgs.rustPlatform.rustLibSrc} '';LD_LIBRARY_PATH="${pkgs.stdenv.cc.cc.lib}/lib";buildInputs=runtimeDeps;nativeBuildInputs=buildDeps++devDeps++[rustc];};in{_module.args.pkgs=importinputs.nixpkgs{inheritsystem;overlays=[(importinputs.rust-overlay)];config.allowUnfreePredicate=pkg: builtins.elem(lib.getNamepkg)["surrealdb"];};packages.default=self'.packages.base;devShells.default=self'.devShells.stable;packages.base=(rustPackage"");packages.bunyan=(rustPackage"bunyan");packages.tokio-console=(rustPackage"tokio-console");devShells.nightly=(mkDevShell(pkgs.rust-bin.selectLatestNightlyWith(toolchain: toolchain.default.override{extensions=["rust-analyzer"];})));devShells.stable=(mkDevShell(pkgs.rust-bin.stable.latest.default.override{extensions=["rust-analyzer"];}));devShells.msrv=(mkDevShell(pkgs.rust-bin.stable.${msrv}.default.override{extensions=["rust-analyzer"];}));};};}
I can't figure out where else to look, as far as I can tell I'm not including my own package inside the devshell... is something in the overlay triggering the build on nix develop? If so, is there a way to stop it?
If not...any suggestions?
The text was updated successfully, but these errors were encountered:
I'm not sure where else to ask and I can't get past this issue. I want open a
nix develop
devshell without building the project, but I want the project to build withnix run
andnix build
.I'm using this flake.nix I based off of https://log.woodweb.ca/articles/rust-flake/:
I can't figure out where else to look, as far as I can tell I'm not including my own package inside the devshell... is something in the overlay triggering the build on
nix develop
? If so, is there a way to stop it?If not...any suggestions?
The text was updated successfully, but these errors were encountered: