2020-09-25 04:45:31 +00:00
|
|
|
{ stdenv, fetchurl, runCommand, fetchCrate, rustPlatform, Security, openssl, pkg-config
|
2020-07-18 16:06:22 +00:00
|
|
|
, SystemConfiguration
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "cargo-make";
|
2020-09-25 04:45:31 +00:00
|
|
|
version = "0.32.4";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2020-09-25 04:45:31 +00:00
|
|
|
src = fetchCrate {
|
|
|
|
inherit pname version;
|
|
|
|
sha256 = "04x363wz82f0sr4128f1nk1wxnnszxsmaxjs92mbvmpbvry82ivq";
|
|
|
|
};
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
|
|
|
|
|
|
buildInputs = [ openssl ]
|
2020-07-18 16:06:22 +00:00
|
|
|
++ stdenv.lib.optionals stdenv.isDarwin [ Security SystemConfiguration ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2020-09-25 04:45:31 +00:00
|
|
|
cargoSha256 = "1fgcxgm800sr0y6ab7c42l335b6c00cx0f2r5rgayi645a47a1zf";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
# Some tests fail because they need network access.
|
|
|
|
# However, Travis ensures a proper build.
|
|
|
|
# See also:
|
|
|
|
# https://travis-ci.org/sagiegurari/cargo-make
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "A Rust task runner and build tool";
|
|
|
|
homepage = "https://github.com/sagiegurari/cargo-make";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ xrelkd ma27 ];
|
|
|
|
};
|
|
|
|
}
|