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

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

43 lines
973 B
Nix
Raw Normal View History

{ lib
, stdenv
, fetchurl
, runCommand
, fetchCrate
, rustPlatform
, Security
, openssl
, pkg-config
, SystemConfiguration
, libiconv
}:
2019-05-11 02:50:30 +00:00
rustPlatform.buildRustPackage rec {
pname = "cargo-make";
2022-03-12 03:01:59 +00:00
version = "0.35.10";
2019-05-11 02:50:30 +00:00
src = fetchCrate {
inherit pname version;
2022-03-12 03:01:59 +00:00
sha256 = "sha256-l34sThvzhAW8VfxVuv+UGVil7yOvsOiWSqr/N91V8C8=";
};
2019-05-11 02:50:30 +00:00
nativeBuildInputs = [ pkg-config ];
2019-05-11 02:50:30 +00:00
buildInputs = [ openssl ]
++ lib.optionals stdenv.isDarwin [ Security SystemConfiguration libiconv ];
2022-03-12 03:01:59 +00:00
cargoSha256 = "sha256-974Gqtv+g32iHrIqIzqwBsE8frzmjF0Ma/hSMGzMaGs=";
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 = "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
};
}