nixpkgs/pkgs/development/tools/rust/cargo-make/default.nix

34 lines
955 B
Nix
Raw Normal View History

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