34 lines
945 B
Nix
Raw Normal View History

{ lib, stdenv, fetchurl, runCommand, fetchCrate, rustPlatform, Security, openssl, pkg-config
, SystemConfiguration
}:
2019-05-11 10:50:30 +08:00
rustPlatform.buildRustPackage rec {
pname = "cargo-make";
2021-04-22 07:13:27 +00:00
version = "0.32.17";
2019-05-11 10:50:30 +08:00
src = fetchCrate {
inherit pname version;
2021-04-22 07:13:27 +00:00
sha256 = "sha256-D/8fjJIyHCRzkomRsYUnGjDMCusjNX8ZYmLjowCYgcM=";
};
2019-05-11 10:50:30 +08:00
nativeBuildInputs = [ pkg-config ];
2019-05-11 10:50:30 +08:00
buildInputs = [ openssl ]
++ lib.optionals stdenv.isDarwin [ Security SystemConfiguration ];
2021-04-22 07:13:27 +00:00
cargoSha256 = "sha256-Upegh3W31sTaXl0iHZ3HiYs9urgXH/XhC0vQBAWvDIc=";
2019-05-11 10:50:30 +08: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 10:50:30 +08:00
description = "A Rust task runner and build tool";
2019-06-27 12:37:48 +08:00
homepage = "https://github.com/sagiegurari/cargo-make";
2019-05-11 10:50:30 +08:00
license = licenses.asl20;
maintainers = with maintainers; [ xrelkd ma27 ];
2019-05-11 10:50:30 +08:00
};
}