diff options
author | Mario Rodas <marsam@users.noreply.github.com> | 2019-07-24 18:57:18 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-07-24 18:57:18 -0500 |
commit | b5f5c97f7d67a99b67731a8cfd3926f163c11857 (patch) | |
tree | 267ba5ee1c1e951e5296265727dc2092ea1c9f4c /pkgs/development/tools/rust | |
parent | 90ccc1c20c3118b56f647bfe2de7a8baee6afb33 (diff) | |
parent | 02d79ced9016ec67f3bfd3928a5c2969b25e2188 (diff) |
Merge pull request #64245 from turboMaCk/tools-rust/cargo-generate
cargo-generate: init at 0.3.0
Diffstat (limited to 'pkgs/development/tools/rust')
-rw-r--r-- | pkgs/development/tools/rust/cargo-generate/default.nix | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/pkgs/development/tools/rust/cargo-generate/default.nix b/pkgs/development/tools/rust/cargo-generate/default.nix new file mode 100644 index 0000000000000..0ca12bd7bf4fa --- /dev/null +++ b/pkgs/development/tools/rust/cargo-generate/default.nix @@ -0,0 +1,30 @@ +{ stdenv, fetchFromGitHub, rustPlatform, Security, openssl, pkgconfig, libiconv, curl }: + +rustPlatform.buildRustPackage rec { + name = "cargo-generate-${version}"; + version = "0.3.0"; + + src = fetchFromGitHub { + owner = "ashleygwilliams"; + repo = "cargo-generate"; + rev = "v${version}"; + sha256 = "0n6na6xq4bvs9hc7vc86qqmlrkv824qdmja27b21l2wz3l77r4jb"; + }; + + cargoSha256 = "00fgzh1s63rr1vs3ahra604m81fc4imx3s09brw2y0n46syhwypi"; + + nativeBuildInputs = [ pkgconfig ]; + + buildInputs = [ openssl ] + ++ stdenv.lib.optionals stdenv.isDarwin [ Security libiconv curl ]; + + doCheck = false; + + meta = with stdenv.lib; { + description = "cargo, make me a project"; + homepage = https://github.com/ashleygwilliams/cargo-generate; + license = licenses.asl20; + maintainers = [ maintainers.turbomack ]; + platforms = platforms.all; + }; +} |