aboutsummaryrefslogtreecommitdiff
path: root/flake.nix
diff options
context:
space:
mode:
Diffstat (limited to 'flake.nix')
-rw-r--r--flake.nix11
1 files changed, 9 insertions, 2 deletions
diff --git a/flake.nix b/flake.nix
index 23763dac..8ad3c90a 100644
--- a/flake.nix
+++ b/flake.nix
@@ -12,8 +12,15 @@
flake-utils.lib.eachDefaultSystem (system:
let
pkgs = import nixpkgs { inherit system; overlays = [ rust-overlay.overlay ]; };
- naerskLib = pkgs.callPackage naersk {
- inherit (pkgs.rust-bin.stable.latest.default) rustc cargo;
+ rust = (pkgs.rustChannelOf {
+ date = "2021-05-01";
+ channel = "nightly";
+ }).minimal; # cargo, rustc and rust-std
+ naerskLib = naersk.lib."${system}".override {
+ # naersk can't build with stable?!
+ # inherit (pkgs.rust-bin.stable.latest) rustc cargo;
+ rustc = rust;
+ cargo = rust;
};
in rec {
packages.helix = naerskLib.buildPackage {