From 02d79ced9016ec67f3bfd3928a5c2969b25e2188 Mon Sep 17 00:00:00 2001 From: Marek Fajkus Date: Wed, 3 Jul 2019 13:58:15 +0200 Subject: [PATCH] cargo-generate: init at 0.3.0 --- .../tools/rust/cargo-generate/default.nix | 30 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 3 ++ 2 files changed, 33 insertions(+) create mode 100644 pkgs/development/tools/rust/cargo-generate/default.nix 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 000000000000..0ca12bd7bf4f --- /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; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 3943d02499cf..17e7c2395c85 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -8075,6 +8075,9 @@ in }; cargo-sweep = callPackage ../development/tools/rust/cargo-sweep { }; cargo-xbuild = callPackage ../development/tools/rust/cargo-xbuild { }; + cargo-generate = callPackage ../development/tools/rust/cargo-generate { + inherit (darwin.apple_sdk.frameworks) Security; + }; pyo3-pack = callPackage ../development/tools/rust/pyo3-pack { }; rainicorn = callPackage ../development/tools/rust/rainicorn { };