nixpkgs/pkgs/development/tools/rust/cargo-generate/default.nix

31 lines
848 B
Nix
Raw Normal View History

2019-07-03 11:58:15 +00:00
{ stdenv, fetchFromGitHub, rustPlatform, Security, openssl, pkgconfig, libiconv, curl }:
rustPlatform.buildRustPackage rec {
2019-08-31 11:41:23 +00:00
pname = "cargo-generate";
2019-10-20 15:16:31 +00:00
version = "0.4.0";
2019-07-03 11:58:15 +00:00
src = fetchFromGitHub {
owner = "ashleygwilliams";
repo = "cargo-generate";
rev = "v${version}";
2019-10-20 15:16:31 +00:00
sha256 = "09276jrb0a735v6p06wz94kbk8bblwpca13vpvy8n0jjmqack2xb";
2019-07-03 11:58:15 +00:00
};
2019-10-20 15:16:31 +00:00
cargoSha256 = "1gbxfmhwzpxm0gs3zwzs010j0ndi5aw6xsvvngg0h1lpwg9ypnbr";
2019-07-03 11:58:15 +00:00
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;
};
}