Clean up a bit and remove patches

Signed-off-by: Marcel Müller <neikos@neikos.email>
This commit is contained in:
Marcel Müller 2025-03-04 15:34:30 +01:00
parent 8c55f225dc
commit c8a98a05ee
3 changed files with 16 additions and 42 deletions

View file

@ -40,20 +40,6 @@ craneLib.buildPackage (
// {
inherit cargoArtifacts;
patches = [ ./cargo-dylint-patch-rustup.patch ];
postPatch = ''
substituteInPlace dylint/build.rs \
--replace-fail @DRIVER_DIR@ ${src}/driver
substituteInPlace internal/src/cargo.rs \
--replace-fail @STABLE_CARGO@ ${craneLib.cargo}/bin/cargo
substituteInPlace internal/src/rustup.rs \
--replace-fail @RUST_TOOLCHAIN@ $RUSTUP_TOOLCHAIN \
--replace-fail @RUST_TOOLCHAIN_PATH@ ${craneLib.rustc}
'';
doNotRemoveReferencesToRustToolchain = true;
}
)