92b3d6365d
GitOrigin-RevId: 412b9917cea092f3d39f9cd5dead4effd5bc4053
25 lines
746 B
Nix
25 lines
746 B
Nix
{ lib, stdenv, fetchCrate, rustPlatform, pkg-config, openssl, Security }:
|
||
|
||
rustPlatform.buildRustPackage rec {
|
||
pname = "cargo-pgx";
|
||
version = "0.5.6";
|
||
|
||
src = fetchCrate {
|
||
inherit version pname;
|
||
sha256 = "sha256-CbQWgt/M/QVKpuOzY04OEZNX4DauYPMz2404WQlAvTw=";
|
||
};
|
||
|
||
cargoSha256 = "sha256-sqAOhSZXzqxOVkEbqpd+9MoXqEFlkFufQ8O1zAXPnLQ=";
|
||
|
||
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 ];
|
||
};
|
||
}
|