diff options
author | Léo Gaspard <leo@gaspard.io> | 2018-08-06 19:43:24 +0900 |
---|---|---|
committer | Nicolas B. Pierron <nicolas.b.pierron@gmail.com> | 2018-08-06 17:39:13 +0200 |
commit | 18186b9786bc72b7de124c3be6eb1e69d1c9acca (patch) | |
tree | 30ed8b4d6e6aa435a8c93b9f0d18a276ebfc8128 | |
parent | cf7bc3ac8c482461d9df1b799b80ee79911af85b (diff) | |
download | nixlib-18186b9786bc72b7de124c3be6eb1e69d1c9acca.tar nixlib-18186b9786bc72b7de124c3be6eb1e69d1c9acca.tar.gz nixlib-18186b9786bc72b7de124c3be6eb1e69d1c9acca.tar.bz2 nixlib-18186b9786bc72b7de124c3be6eb1e69d1c9acca.tar.lz nixlib-18186b9786bc72b7de124c3be6eb1e69d1c9acca.tar.xz nixlib-18186b9786bc72b7de124c3be6eb1e69d1c9acca.tar.zst nixlib-18186b9786bc72b7de124c3be6eb1e69d1c9acca.zip |
Add helper Rust builder
-rw-r--r-- | rust-overlay.nix | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/rust-overlay.nix b/rust-overlay.nix index 6431560d6d78..8b7690f1631b 100644 --- a/rust-overlay.nix +++ b/rust-overlay.nix @@ -286,6 +286,11 @@ rec { }; }; + # Helper builder + rustChannelOfTargets = channel: date: targets: + (rustChannelOf { inherit channel date; }) + .rust.override { inherit targets; }; + # For backward compatibility rustChannels = latest.rustChannels; |