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
|
2024-10-16 17:49:23 +00:00
|
|
|
, installShellFiles
|
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-11-03 12:27:28 +00:00
|
|
|
version = "0.37.23";
|
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-11-03 12:27:28 +00:00
|
|
|
hash = "sha256-yYZasrnfxpLf0z6GndLYhkIFfVNjTkx4zdfHYX6WyXk=";
|
2020-08-28 13:27:54 +00:00
|
|
|
};
|
2019-05-11 02:50:30 +00:00
|
|
|
|
2024-11-03 12:27:28 +00:00
|
|
|
cargoHash = "sha256-X4FhUqhf58wbl3A8nlXAqnYkkaXajxxqRyJn5K7BVqM=";
|
2019-05-11 02:50:30 +00:00
|
|
|
|
2024-10-16 17:49:23 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
pkg-config
|
|
|
|
installShellFiles
|
|
|
|
];
|
2020-01-24 12:33:58 +00:00
|
|
|
|
2023-08-17 00:34:01 +00:00
|
|
|
buildInputs = [
|
|
|
|
bzip2
|
|
|
|
openssl
|
|
|
|
] ++ lib.optionals stdenv.hostPlatform.isDarwin [
|
|
|
|
darwin.apple_sdk.frameworks.SystemConfiguration
|
|
|
|
];
|
2019-05-11 02:50:30 +00:00
|
|
|
|
2024-10-16 17:49:23 +00:00
|
|
|
postInstall = ''
|
|
|
|
installShellCompletion extra/shell/*.bash
|
|
|
|
'';
|
|
|
|
|
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 = "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
|
|
|
};
|
|
|
|
}
|