2021-04-23 08:34:11 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchurl
|
|
|
|
, runCommand
|
|
|
|
, fetchCrate
|
|
|
|
, rustPlatform
|
|
|
|
, Security
|
|
|
|
, openssl
|
|
|
|
, pkg-config
|
2020-07-03 21:09:43 +00:00
|
|
|
, SystemConfiguration
|
2021-04-23 08:34:11 +00:00
|
|
|
, libiconv
|
2020-07-03 21:09:43 +00:00
|
|
|
}:
|
2019-05-11 02:50:30 +00:00
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "cargo-make";
|
2022-05-08 12:51:21 +00:00
|
|
|
version = "0.35.12";
|
2019-05-11 02:50:30 +00:00
|
|
|
|
2020-08-28 13:27:54 +00:00
|
|
|
src = fetchCrate {
|
|
|
|
inherit pname version;
|
2022-05-08 12:51:21 +00:00
|
|
|
sha256 = "sha256-BBSZTbzT+8obY677Yfmf1VTwg0GtvMNY/FTlS6isJTE=";
|
2020-08-28 13:27:54 +00:00
|
|
|
};
|
2019-05-11 02:50:30 +00:00
|
|
|
|
2020-01-24 12:33:58 +00:00
|
|
|
nativeBuildInputs = [ pkg-config ];
|
2019-05-11 02:50:30 +00:00
|
|
|
|
2020-01-24 12:33:58 +00:00
|
|
|
buildInputs = [ openssl ]
|
2021-04-23 08:34:11 +00:00
|
|
|
++ lib.optionals stdenv.isDarwin [ Security SystemConfiguration libiconv ];
|
2020-01-24 12:33:58 +00:00
|
|
|
|
2022-05-08 12:51:21 +00:00
|
|
|
cargoSha256 = "sha256-Nsm6KnL72HjqGevXwg2qYagzMG5nEFuH9DblbcUv6Qg=";
|
2019-05-11 02:50:30 +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;
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2019-05-11 02:50:30 +00:00
|
|
|
description = "A Rust task runner and build tool";
|
2019-06-27 04:37:48 +00:00
|
|
|
homepage = "https://github.com/sagiegurari/cargo-make";
|
2019-05-11 02:50:30 +00:00
|
|
|
license = licenses.asl20;
|
2020-02-27 19:26:50 +00:00
|
|
|
maintainers = with maintainers; [ xrelkd ma27 ];
|
2019-05-11 02:50:30 +00:00
|
|
|
};
|
|
|
|
}
|