nixpkgs/pkgs/by-name/ca/cargo-make/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

56 lines
1.2 KiB
Nix
Raw Normal View History

{ lib
, rustPlatform
, fetchFromGitHub
, pkg-config
2024-10-16 17:49:23 +00:00
, installShellFiles
, bzip2
, openssl
, stdenv
, darwin
}:
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
src = fetchFromGitHub {
owner = "sagiegurari";
repo = "cargo-make";
rev = version;
2024-11-03 12:27:28 +00:00
hash = "sha256-yYZasrnfxpLf0z6GndLYhkIFfVNjTkx4zdfHYX6WyXk=";
};
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
];
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;
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";
changelog = "https://github.com/sagiegurari/cargo-make/blob/${version}/CHANGELOG.md";
2019-05-11 02:50:30 +00:00
license = licenses.asl20;
maintainers = with maintainers; [ figsoda xrelkd ];
2023-09-08 14:17:17 +00:00
mainProgram = "cargo-make";
2019-05-11 02:50:30 +00:00
};
}