diff options
author | xrelkd <46590321+xrelkd@users.noreply.github.com> | 2019-05-11 10:50:30 +0800 |
---|---|---|
committer | Mario Rodas <marsam@users.noreply.github.com> | 2019-05-15 22:25:30 -0500 |
commit | c1756a0628f494952be09501af14e3e03fc08c33 (patch) | |
tree | 8e0c3d561f01d8eebcb9100cfd82c5fec11ed1ed /pkgs/development | |
parent | 489ca5c978efed18a64d820ed547e314505dbce3 (diff) | |
download | nixpkgs-c1756a0628f494952be09501af14e3e03fc08c33.tar nixpkgs-c1756a0628f494952be09501af14e3e03fc08c33.tar.gz nixpkgs-c1756a0628f494952be09501af14e3e03fc08c33.tar.bz2 nixpkgs-c1756a0628f494952be09501af14e3e03fc08c33.tar.lz nixpkgs-c1756a0628f494952be09501af14e3e03fc08c33.tar.xz nixpkgs-c1756a0628f494952be09501af14e3e03fc08c33.tar.zst nixpkgs-c1756a0628f494952be09501af14e3e03fc08c33.zip |
cargo-make: init at 0.19.1
Diffstat (limited to 'pkgs/development')
-rw-r--r-- | pkgs/development/tools/rust/cargo-make/default.nix | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/pkgs/development/tools/rust/cargo-make/default.nix b/pkgs/development/tools/rust/cargo-make/default.nix new file mode 100644 index 00000000000..056ecd0ca68 --- /dev/null +++ b/pkgs/development/tools/rust/cargo-make/default.nix @@ -0,0 +1,43 @@ +{ stdenv, fetchurl, runCommand, fetchFromGitHub, rustPlatform, Security }: + +rustPlatform.buildRustPackage rec { + pname = "cargo-make"; + version = "0.19.1"; + + src = + let + source = fetchFromGitHub { + owner = "sagiegurari"; + repo = pname; + rev = version; + sha256 = "1bv5gv5zd9h0yw7wb28r0c4z9wqa6n7ac4ipd855apwz1v7sm9n3"; + }; + cargo-lock = fetchurl { + url = "https://gist.githubusercontent.com/xrelkd/e4c9c7738b21f284d97cb7b1d181317d/raw/8a12a07cafeff4ef4a01983f5243dd8c95d10c48/cargo-make-0.19.1-Cargo.lock"; + sha256 = "0v2hygkpsyjcpzrgyzl5mah0y8gmprfbnz7kn4hh6zfhz2lhqqwm"; + }; + in + runCommand "cargo-make-src" {} '' + cp -R ${source} $out + chmod +w $out + cp ${cargo-lock} $out/Cargo.lock + ''; + + buildInputs = stdenv.lib.optionals stdenv.isDarwin [ Security ]; + + cargoSha256 = "0j7gyg6l428gypjpfgdz082vz8m86cx1wy2r47az3sc3skl6dhkq"; + + # 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"; + homepage = https://github.com/sagiegurari/cargo-make; + license = licenses.asl20; + maintainers = with maintainers; [ xrelkd ]; + platforms = platforms.all; + }; +} |