Skip to content

Commit

Permalink
fix pkgs -> final in rust overlay, fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
eureka-cpu committed Aug 19, 2024
1 parent 863fe09 commit b8042b1
Showing 1 changed file with 18 additions and 14 deletions.
32 changes: 18 additions & 14 deletions overlays/rust-toolchain.nix
Original file line number Diff line number Diff line change
@@ -1,21 +1,25 @@
final: prev:
let
mkRustToolchain = toml_path: hash: {
fenix-pkgs = (final.fenix.fromToolchainFile {
file = toml_path;
sha256 = hash;
});
darwin-pkgs = (with pkgs; lib.optionals stdenv.isDarwin [
# Additional darwin specific inputs
libiconv
darwin.apple_sdk.frameworks.Security
darwin.apple_sdk.frameworks.SystemConfiguration
]);
complete = [ fenix-pkgs darwin-pkgs ];
};
mkRustToolchain = toml_path: hash:
let
fenix-pkgs = (final.fenix.fromToolchainFile {
file = toml_path;
sha256 = hash;
});
darwin-pkgs = (with final; lib.optionals stdenv.isDarwin [
# Additional darwin specific inputs
libiconv
darwin.apple_sdk.frameworks.Security
darwin.apple_sdk.frameworks.SystemConfiguration
]);
in
{
inherit fenix-pkgs darwin-pkgs;
complete = [ fenix-pkgs darwin-pkgs ];
};
in
{
lib = prev.lib // {
inherit mkRustToolchain;
};
};
}

0 comments on commit b8042b1

Please sign in to comment.