Skip to content

Commit

Permalink
refactor: rename to rustFlakeInputs
Browse files Browse the repository at this point in the history
to avoid ambiguity
  • Loading branch information
srid committed Aug 5, 2024
1 parent a51532d commit 12025b0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions nix/modules/flake-module.nix
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
inputs:
{ self, pkgs, lib, flake-parts-lib, ... }:
rustFlakeInputs:

let
inherit (flake-parts-lib)
Expand Down Expand Up @@ -29,7 +29,7 @@ in

crane-lib = lib.mkOption {
type = lib.types.lazyAttrsOf lib.types.raw;
default = (inputs.crane.mkLib pkgs).overrideToolchain config.rust-project.toolchain;
default = (rustFlakeInputs.crane.mkLib pkgs).overrideToolchain config.rust-project.toolchain;
};
toolchain = lib.mkOption {
type = lib.types.package;
Expand Down Expand Up @@ -67,7 +67,7 @@ in
config = {
# See nix/modules/nixpkgs.nix (the user must import it)
nixpkgs.overlays = [
inputs.rust-overlay.overlays.default
rustFlakeInputs.rust-overlay.overlays.default
];

# lib.mapAttrs over config.rust-project.crates returning its outputs.packages (combined)
Expand Down

0 comments on commit 12025b0

Please sign in to comment.