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-08-12 12:06:08 +00:00
|
|
|
version = "0.35.16";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2020-09-25 04:45:31 +00:00
|
|
|
src = fetchCrate {
|
|
|
|
inherit pname version;
|
2022-08-12 12:06:08 +00:00
|
|
|
sha256 = "sha256-QRsJoQ2lUOnSkQYwCgUI1su0avQLqEYn56Y0H1hOaVw=";
|
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-08-12 12:06:08 +00:00
|
|
|
cargoSha256 = "sha256-ppg+UksukKQLRncZYlvI7Qi9bdQn07dFPrNn8nQRCsI=";
|
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
|
|
|
};
|
|
|
|
}
|