-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix pkgs -> final in rust overlay, fmt
- Loading branch information
1 parent
863fe09
commit b8042b1
Showing
1 changed file
with
18 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
}; | ||
}; | ||
} |