nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at litex 42 lines 966 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.36.10"; 17 18 src = fetchCrate { 19 inherit pname version; 20 sha256 = "sha256-ZnheOHJzoSDnIk8MCOo9L1ss4r7iVwFgImyUM8nyO5c="; 21 }; 22 23 nativeBuildInputs = [ pkg-config ]; 24 25 buildInputs = [ openssl ] 26 ++ lib.optionals stdenv.isDarwin [ Security SystemConfiguration libiconv ]; 27 28 cargoHash = "sha256-bhIcBj1SZeokVRoF2Pr07FQOK15wScBUavNvlUbjbrA="; 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 ]; 41 }; 42}