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