2022-08-12 12:06:08 +00:00
|
|
|
|
{ lib, stdenv, fetchCrate, rustPlatform, pkg-config, openssl, Security }:
|
|
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
|
pname = "cargo-pgx";
|
2022-12-28 21:21:41 +00:00
|
|
|
|
version = "0.6.1";
|
2022-08-12 12:06:08 +00:00
|
|
|
|
|
|
|
|
|
src = fetchCrate {
|
|
|
|
|
inherit version pname;
|
2022-12-28 21:21:41 +00:00
|
|
|
|
sha256 = "sha256-O4eHVbJBudybsPab+zr2eXnfheREMqLAHAKm2GDbfrs=";
|
2022-08-12 12:06:08 +00:00
|
|
|
|
};
|
|
|
|
|
|
2022-12-28 21:21:41 +00:00
|
|
|
|
cargoSha256 = "sha256-MucGrA3qXgJOcT2LMNmoNOhQi8QA3LuqgZEHKycLCCo=";
|
2022-08-12 12:06:08 +00:00
|
|
|
|
|
|
|
|
|
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 ];
|
|
|
|
|
};
|
|
|
|
|
}
|