@@ -0,0 +1,30 @@
1+{ stdenv, fetchFromGitHub, rustPlatform, Security, openssl, pkgconfig, libiconv, curl }:
3+rustPlatform.buildRustPackage rec {
4+ name = "cargo-generate-${version}";
7+ src = fetchFromGitHub {
8+ owner = "ashleygwilliams";
9+ repo = "cargo-generate";
11+ sha256 = "0n6na6xq4bvs9hc7vc86qqmlrkv824qdmja27b21l2wz3l77r4jb";
14+ cargoSha256 = "00fgzh1s63rr1vs3ahra604m81fc4imx3s09brw2y0n46syhwypi";
16+ nativeBuildInputs = [ pkgconfig ];
18+ buildInputs = [ openssl ]
19+ ++ stdenv.lib.optionals stdenv.isDarwin [ Security libiconv curl ];
23+ meta = with stdenv.lib; {
24+ description = "cargo, make me a project";
25+ homepage = https://github.com/ashleygwilliams/cargo-generate;
26+ license = licenses.asl20;
27+ maintainers = [ maintainers.turbomack ];
28+ platforms = platforms.all;