Skip to content

Commit

Permalink
try passing it to packages
Browse files Browse the repository at this point in the history
  • Loading branch information
sgoudham committed Jun 8, 2024
1 parent 786435a commit d624b66
Showing 1 changed file with 17 additions and 8 deletions.
25 changes: 17 additions & 8 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -66,17 +66,26 @@

packages = forEachSystem (
{ pkgs, system }:
let
rust-toolchain = (
pkgs.rust-bin.stable.latest.default.override {
extensions = [
"rustfmt"
"rust-analyzer"
"clippy"
"rust-src"
];
targets = [ "wasm32-unknown-unknown" ];
}
);
in
{
default = self.packages.${system}.catwalk;
catwalk = pkgs.callPackage ./default.nix {
rustPlatform =
let
toolchain = pkgs.rust-bin.stable.latest.default;
in
pkgs.makeRustPlatform {
cargo = toolchain;
rustc = toolchain;
};
rustPlatform = pkgs.makeRustPlatform {
cargo = rust-toolchain;
rustc = rust-toolchain;
};
};
}
);
Expand Down

0 comments on commit d624b66

Please sign in to comment.