@@ -0,0 +1,30 @@
1+{ stdenv, fetchFromGitHub, rustPlatform, Security, openssl, pkgconfig, libiconv, curl }:
2+
3+rustPlatform.buildRustPackage rec {
4+ name = "cargo-generate-${version}";
5+ version = "0.3.0";
6+
7+ src = fetchFromGitHub {
8+ owner = "ashleygwilliams";
9+ repo = "cargo-generate";
10+ rev = "v${version}";
11+ sha256 = "0n6na6xq4bvs9hc7vc86qqmlrkv824qdmja27b21l2wz3l77r4jb";
12+ };
13+
14+ cargoSha256 = "00fgzh1s63rr1vs3ahra604m81fc4imx3s09brw2y0n46syhwypi";
15+
16+ nativeBuildInputs = [ pkgconfig ];
17+
18+ buildInputs = [ openssl ]
19+ ++ stdenv.lib.optionals stdenv.isDarwin [ Security libiconv curl ];
20+
21+ doCheck = false;
22+
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;
29+ };
30+}