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,
rustPlatform,
rust-bin,
makeRustPlatform,
lib,
}: let
toolchain = rust-bin.stable.latest.default;
rustPlatform = makeRustPlatform {
rustc = toolchain;
cargo = toolchain;
};
inherit (lib.sources) sourceByRegex;
src = sourceByRegex ./. ["Cargo.*" "(src|derive|benches|tests|examples.*)(/.*)?"];
in