ITADN

bug: Adding crane built package to `inputsFrom` in devShell produces `postBuildInstallFromCargoBuildLogOutTempXXX`

#997Closedeureka-cpu 创建于 2026-03-21
E
eureka-cpucommented
**Describe the bug** <!-- Please describe the error and provide error logs as appropriate. If something is confusing or unclear, please describe what you would have expected to happen Otherwise, if you need help debugging a broken build configuration, consider opening a discussion: https://github.com/ipetkov/crane/discussions --> Ref #904 **Reproduction** <!-- Please provide a(n ideally minimal,) fully self-contained flake that reproduces the issue, and specify which output needs to be built that shows the error. A partial snippet is not enough to fully investigate potential issues. --> Use `craneLib.buildPackage` to build a rust package, and then add it to `inputsFrom` in a `craneLib.devShell` to get its inputs: ```nix let packages = { my-pkg = crane.buildPackage (individualCrateArgs // { nativeBuildInputs = with pkgs; [ wasm-pack wasm-bindgen-cli_0_2_114 binaryen ]; }); }; in crane.devShell { inherit checks; inputsFrom = builtins.attrValues packages; }; ```
关闭于 2026-04-03 3 条评论