a0cb138ada
GitOrigin-RevId: a100acd7bbf105915b0004427802286c37738fef
42 lines
965 B
Nix
42 lines
965 B
Nix
{ lib
|
|
, stdenv
|
|
, fetchurl
|
|
, runCommand
|
|
, fetchCrate
|
|
, rustPlatform
|
|
, Security
|
|
, openssl
|
|
, pkg-config
|
|
, SystemConfiguration
|
|
, libiconv
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "cargo-make";
|
|
version = "0.36.4";
|
|
|
|
src = fetchCrate {
|
|
inherit pname version;
|
|
sha256 = "sha256-motvwMacwqD6MMWxehCV/Eb+8EN9XthcEr0e5DFlvOg=";
|
|
};
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
|
|
buildInputs = [ openssl ]
|
|
++ lib.optionals stdenv.isDarwin [ Security SystemConfiguration libiconv ];
|
|
|
|
cargoHash = "sha256-/hgCYgWx7hDAUTrDT9ndlk7t/bGXTtDS9Eth3OWkbKM=";
|
|
|
|
# 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; {
|
|
description = "A Rust task runner and build tool";
|
|
homepage = "https://github.com/sagiegurari/cargo-make";
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ xrelkd ];
|
|
};
|
|
}
|