# Regenerate nix/Cargo.nix after Cargo.lock changes: # nix run github:nix-community/crate2nix -- generate -f ./Cargo.toml -o ./nix/Cargo.nix { callPackage, rustc, cargo, }: (callPackage ../Cargo.nix { buildRustCrateForPkgs = pkgs: pkgs.buildRustCrate.override { inherit rustc cargo; # defaultCodegenUnits = 16; defaultCrateOverrides = pkgs.defaultCrateOverrides // { # crate2nix builds each crate from its own directory, so the build script # cannot reach the workspace-root lexicons/ dir it defaults to. lexicons = _: { TANGLED_LEXICONS_DIR = ../../lexicons; }; }; }; }) .workspaceMembers .gitmirror .build