feat: add dependency derivation to flake output, so it can be pinned

If you write nix build .#deps ,then the result link gets added
as a gc root so it doesn't get garbage collected.
This commit is contained in:
Tamipes 2026-02-03 21:03:20 +01:00
parent e403d93dc2
commit 6fab222d1e

View file

@ -119,6 +119,7 @@
packages = { packages = {
default = my-crate; default = my-crate;
deps = cargoArtifacts;
} // lib.optionalAttrs (!pkgs.stdenv.isDarwin) { } // lib.optionalAttrs (!pkgs.stdenv.isDarwin) {
my-crate-llvm-coverage = craneLibLLvmTools.cargoLlvmCov (commonArgs // { my-crate-llvm-coverage = craneLibLLvmTools.cargoLlvmCov (commonArgs // {
inherit cargoArtifacts; inherit cargoArtifacts;