cargo-deb: fix build

This commit is contained in:
Maximilian Bosch 2020-05-13 01:38:15 +02:00
parent 6b23cfe689
commit 0d7f889607
No known key found for this signature in database
GPG Key ID: 091DBF4D1FC46B8E

View File

@ -2,7 +2,9 @@
, lib
, fetchFromGitHub
, rustPlatform
, Security }:
, rust
, Security
}:
rustPlatform.buildRustPackage rec {
pname = "cargo-deb";
@ -19,6 +21,13 @@ rustPlatform.buildRustPackage rec {
cargoSha256 = "1vqnnqn6rzkdi239bh3lk7gaxr7w6v3c4ws4ya1ah04g6v9hkzlw";
checkType = "debug";
preCheck = ''
substituteInPlace tests/command.rs \
--replace 'target/debug' "target/${rust.toRustTarget stdenv.buildPlatform}/debug"
'';
meta = with lib; {
description = "Generate Debian packages from information in Cargo.toml";
homepage = "https://github.com/mmstick/cargo-deb";