mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-10-03 11:07:44 +03:00
cargo-deb: fix build
This commit is contained in:
parent
6b23cfe689
commit
0d7f889607
@ -2,7 +2,9 @@
|
|||||||
, lib
|
, lib
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
, rustPlatform
|
, rustPlatform
|
||||||
, Security }:
|
, rust
|
||||||
|
, Security
|
||||||
|
}:
|
||||||
|
|
||||||
rustPlatform.buildRustPackage rec {
|
rustPlatform.buildRustPackage rec {
|
||||||
pname = "cargo-deb";
|
pname = "cargo-deb";
|
||||||
@ -19,6 +21,13 @@ rustPlatform.buildRustPackage rec {
|
|||||||
|
|
||||||
cargoSha256 = "1vqnnqn6rzkdi239bh3lk7gaxr7w6v3c4ws4ya1ah04g6v9hkzlw";
|
cargoSha256 = "1vqnnqn6rzkdi239bh3lk7gaxr7w6v3c4ws4ya1ah04g6v9hkzlw";
|
||||||
|
|
||||||
|
checkType = "debug";
|
||||||
|
|
||||||
|
preCheck = ''
|
||||||
|
substituteInPlace tests/command.rs \
|
||||||
|
--replace 'target/debug' "target/${rust.toRustTarget stdenv.buildPlatform}/debug"
|
||||||
|
'';
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Generate Debian packages from information in Cargo.toml";
|
description = "Generate Debian packages from information in Cargo.toml";
|
||||||
homepage = "https://github.com/mmstick/cargo-deb";
|
homepage = "https://github.com/mmstick/cargo-deb";
|
||||||
|
Loading…
Reference in New Issue
Block a user