2021-04-23 08:34:11 +00:00
|
|
|
{ lib
|
|
|
|
, rustPlatform
|
2023-09-08 14:09:35 +00:00
|
|
|
, fetchFromGitHub
|
2021-04-23 08:34:11 +00:00
|
|
|
, pkg-config
|
2023-08-17 00:34:01 +00:00
|
|
|
, bzip2
|
|
|
|
, openssl
|
|
|
|
, stdenv
|
|
|
|
, darwin
|
2020-07-03 21:09:43 +00:00
|
|
|
}:
|
2019-05-11 02:50:30 +00:00
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "cargo-make";
|
2024-02-23 20:43:31 +00:00
|
|
|
version = "0.37.10";
|
2019-05-11 02:50:30 +00:00
|
|
|
|
2023-09-08 14:09:35 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "sagiegurari";
|
|
|
|
repo = "cargo-make";
|
|
|
|
rev = version;
|
2024-02-23 20:43:31 +00:00
|
|
|
hash = "sha256-qahmRwRjwefkp21f4nsIR4THGibkQ8+20qVmQmJ7+Vk=";
|
2020-08-28 13:27:54 +00:00
|
|
|
};
|
2019-05-11 02:50:30 +00:00
|
|
|
|
2024-02-23 20:43:31 +00:00
|
|
|
cargoHash = "sha256-NTi+1ULK+k1JIP7z3/3v7gPUxXgliq3i8gtJQVLDGEY=";
|
2019-05-11 02:50:30 +00:00
|
|
|
|
2023-08-17 00:34:01 +00:00
|
|
|
nativeBuildInputs = [ pkg-config ];
|
2020-01-24 12:33:58 +00:00
|
|
|
|
2023-08-17 00:34:01 +00:00
|
|
|
buildInputs = [
|
|
|
|
bzip2
|
|
|
|
openssl
|
|
|
|
] ++ lib.optionals stdenv.isDarwin [
|
|
|
|
darwin.apple_sdk.frameworks.SystemConfiguration
|
|
|
|
];
|
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";
|
2023-08-17 00:34:01 +00:00
|
|
|
changelog = "https://github.com/sagiegurari/cargo-make/blob/${version}/CHANGELOG.md";
|
2019-05-11 02:50:30 +00:00
|
|
|
license = licenses.asl20;
|
2023-08-17 00:34:01 +00:00
|
|
|
maintainers = with maintainers; [ figsoda xrelkd ];
|
2023-09-08 14:17:17 +00:00
|
|
|
mainProgram = "cargo-make";
|
2019-05-11 02:50:30 +00:00
|
|
|
};
|
|
|
|
}
|