2021-04-25 03:57:28 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchurl
|
|
|
|
, runCommand
|
|
|
|
, fetchCrate
|
|
|
|
, rustPlatform
|
|
|
|
, Security
|
|
|
|
, openssl
|
|
|
|
, pkg-config
|
2020-07-18 16:06:22 +00:00
|
|
|
, SystemConfiguration
|
2021-04-25 03:57:28 +00:00
|
|
|
, libiconv
|
2020-07-18 16:06:22 +00:00
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "cargo-make";
|
2022-10-21 18:38:19 +00:00
|
|
|
version = "0.36.2";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2020-09-25 04:45:31 +00:00
|
|
|
src = fetchCrate {
|
|
|
|
inherit pname version;
|
2022-10-21 18:38:19 +00:00
|
|
|
sha256 = "sha256-QhXBlGt8PFAsweYHxqk6y/BRsOURXUHU7QWQpNcFMyk=";
|
2020-09-25 04:45:31 +00:00
|
|
|
};
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
|
|
|
|
|
|
buildInputs = [ openssl ]
|
2021-04-25 03:57:28 +00:00
|
|
|
++ lib.optionals stdenv.isDarwin [ Security SystemConfiguration libiconv ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-10-21 18:38:19 +00:00
|
|
|
cargoSha256 = "sha256-JUdzgHSlCCelPFXdeUCrt8LntsnrgjuLah0+m5ll1oo=";
|
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;
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "A Rust task runner and build tool";
|
|
|
|
homepage = "https://github.com/sagiegurari/cargo-make";
|
|
|
|
license = licenses.asl20;
|
2022-06-26 10:26:21 +00:00
|
|
|
maintainers = with maintainers; [ xrelkd ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|