2023-11-01 05:02:59 +01:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, rustPlatform
|
|
|
|
, fetchFromGitHub
|
|
|
|
}:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "cargo-swift";
|
2024-02-19 00:51:52 +01:00
|
|
|
version = "0.6.1";
|
2023-11-01 05:02:59 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "antoniusnaumann";
|
|
|
|
repo = "cargo-swift";
|
|
|
|
rev = "v${version}";
|
2024-02-19 00:51:52 +01:00
|
|
|
hash = "sha256-hTlgIPXXdhxFtK/acXITwitIg1DGgF4cCVaAxogWPrk=";
|
2023-11-01 05:02:59 +01:00
|
|
|
};
|
|
|
|
|
2024-02-19 00:51:52 +01:00
|
|
|
cargoHash = "sha256-6F4CX9uiCfPbgFRZ0hC/s5xT42S2V5ZgGQ+O2bHb9vg=";
|
2023-11-01 05:02:59 +01:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "A cargo plugin to easily build Swift packages from Rust code";
|
2024-03-19 03:14:51 +01:00
|
|
|
mainProgram = "cargo-swift";
|
2023-11-01 05:02:59 +01:00
|
|
|
homepage = "https://github.com/antoniusnaumann/cargo-swift";
|
|
|
|
license = with licenses; [ asl20 mit ];
|
|
|
|
maintainers = with maintainers; [ elliot ];
|
|
|
|
};
|
|
|
|
}
|