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