cargo-pgx: init at 0.4.5

This commit is contained in:
Eric Wolf 2022-08-09 12:28:31 +02:00 committed by Winter
parent f35f4a28a6
commit a37dd32ab6
2 changed files with 28 additions and 0 deletions

View File

@ -0,0 +1,25 @@
{ lib, stdenv, fetchCrate, rustPlatform, pkg-config, openssl, Security }:
rustPlatform.buildRustPackage rec {
pname = "cargo-pgx";
version = "0.4.5";
src = fetchCrate {
inherit version pname;
sha256 = "sha256-BcMGa/1ATwLG8VnwItfd5eqmrck/u0MEoR5sA2yuzyQ=";
};
cargoSha256 = "sha256-urlwqBCZMxlPEjLLPBhI2lDNTusCSZ1bZu1p8poVrtw=";
nativeBuildInputs = [ pkg-config ];
buildInputs = [ openssl ]
++ lib.optionals stdenv.isDarwin [ Security ];
meta = with lib; {
description = "Cargo subcommand for pgx to make Postgres extension development easy";
homepage = "https://github.com/tcdi/pgx/tree/v${version}/cargo-pgx";
license = licenses.mit;
maintainers = with maintainers; [ typetetris ];
};
}

View File

@ -14223,6 +14223,9 @@ with pkgs;
cargo-outdated = callPackage ../development/tools/rust/cargo-outdated {
inherit (darwin.apple_sdk.frameworks) Security SystemConfiguration;
};
cargo-pgx = callPackage ../development/tools/rust/cargo-pgx {
inherit (darwin.apple_sdk.frameworks) Security;
};
cargo-release = callPackage ../development/tools/rust/cargo-release {
inherit (darwin.apple_sdk.frameworks) Security;
};