From 84de6c2816f43ff10e3df3cb45bfb0c7a503bbf1 Mon Sep 17 00:00:00 2001 From: Elliot Date: Wed, 1 Nov 2023 12:02:59 +0800 Subject: [PATCH] cargo-swift: init at 0.4.0 --- pkgs/by-name/ca/cargo-swift/package.nix | 26 +++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 pkgs/by-name/ca/cargo-swift/package.nix diff --git a/pkgs/by-name/ca/cargo-swift/package.nix b/pkgs/by-name/ca/cargo-swift/package.nix new file mode 100644 index 000000000000..e98dab10b058 --- /dev/null +++ b/pkgs/by-name/ca/cargo-swift/package.nix @@ -0,0 +1,26 @@ +{ lib +, stdenv +, rustPlatform +, fetchFromGitHub +}: + +rustPlatform.buildRustPackage rec { + pname = "cargo-swift"; + version = "0.4.0"; + + src = fetchFromGitHub { + owner = "antoniusnaumann"; + repo = "cargo-swift"; + rev = "v${version}"; + hash = "sha256-dW0/h7uS0BEstiochACIySSKXsz+E6Tj5MaLtdin7gw="; + }; + + cargoHash = "sha256-LsjDeKfAvgVYM4qYyWq9MoXB4jIh870urrFHpiGCGPc="; + + meta = with lib; { + description = "A cargo plugin to easily build Swift packages from Rust code"; + homepage = "https://github.com/antoniusnaumann/cargo-swift"; + license = with licenses; [ asl20 mit ]; + maintainers = with maintainers; [ elliot ]; + }; +}