fix nix server build

This commit is contained in:
Robin Appelman 2024-08-29 16:12:22 +02:00
commit fa9641e125

View file

@ -1,8 +1,14 @@
{ {
stdenv, stdenv,
rustPlatform, rust-bin,
makeRustPlatform,
lib, lib,
}: let }: let
toolchain = rust-bin.stable.latest.default;
rustPlatform = makeRustPlatform {
rustc = toolchain;
cargo = toolchain;
};
inherit (lib.sources) sourceByRegex; inherit (lib.sources) sourceByRegex;
src = sourceByRegex ./. ["Cargo.*" "(src|derive|benches|tests|examples.*)(/.*)?"]; src = sourceByRegex ./. ["Cargo.*" "(src|derive|benches|tests|examples.*)(/.*)?"];
in in