nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at 22.05 42 lines 973 B view raw
1{ lib 2, stdenv 3, fetchurl 4, runCommand 5, fetchCrate 6, rustPlatform 7, Security 8, openssl 9, pkg-config 10, SystemConfiguration 11, libiconv 12}: 13 14rustPlatform.buildRustPackage rec { 15 pname = "cargo-make"; 16 version = "0.35.12"; 17 18 src = fetchCrate { 19 inherit pname version; 20 sha256 = "sha256-BBSZTbzT+8obY677Yfmf1VTwg0GtvMNY/FTlS6isJTE="; 21 }; 22 23 nativeBuildInputs = [ pkg-config ]; 24 25 buildInputs = [ openssl ] 26 ++ lib.optionals stdenv.isDarwin [ Security SystemConfiguration libiconv ]; 27 28 cargoSha256 = "sha256-Nsm6KnL72HjqGevXwg2qYagzMG5nEFuH9DblbcUv6Qg="; 29 30 # Some tests fail because they need network access. 31 # However, Travis ensures a proper build. 32 # See also: 33 # https://travis-ci.org/sagiegurari/cargo-make 34 doCheck = false; 35 36 meta = with lib; { 37 description = "A Rust task runner and build tool"; 38 homepage = "https://github.com/sagiegurari/cargo-make"; 39 license = licenses.asl20; 40 maintainers = with maintainers; [ xrelkd ma27 ]; 41 }; 42}