build-rust-package: call sysroot/src with the expected lib parameter

This commit is contained in:
Astro 2023-02-08 23:40:38 +01:00
parent 0c4800d579
commit 2d2aa463dd

View file

@ -1,10 +1,10 @@
{ stdenv, rust, rustPlatform, buildPackages }:
{ lib, stdenv, rust, rustPlatform, buildPackages }:
{ shortTarget, originalCargoToml, target, RUSTFLAGS }:
let
cargoSrc = import ../../sysroot/src.nix {
inherit stdenv rustPlatform buildPackages originalCargoToml;
inherit lib stdenv rustPlatform buildPackages originalCargoToml;
};
in rustPlatform.buildRustPackage {
inherit target RUSTFLAGS;