cargo-pgrx: 0.9.8 -> 0.10.0

This commit is contained in:
happysalada 2023-09-05 20:30:57 -04:00 committed by Yt
parent 024f043a27
commit 109efd459d

View file

@ -2,23 +2,32 @@
let let
pname = "cargo-pgrx"; pname = "cargo-pgrx";
version = "0.9.8"; version = "0.10.0";
in in
rustPlatform.buildRustPackage rec { rustPlatform.buildRustPackage rec {
inherit version pname; inherit version pname;
src = fetchCrate { src = fetchCrate {
inherit version pname; inherit version pname;
hash = "sha256-Sk9fz84EheP+Ohq2e2E1q7dKDPE2Y4QSsHGlNvNb/g0="; hash = "sha256-iqKcYp0dsay3/OE+N6KLjGEnloaImyS5xNaVciOYERc=";
}; };
cargoHash = "sha256-MSANrOjpcyKuoxyomCspxjYwzlT7BLJE3CseczOfOJY="; cargoHash = "sha256-IWqHt6RL5ICBarmVx7QNjt3JrS0JYi/odEjPkLYMsPI=";
nativeBuildInputs = [ pkg-config ]; nativeBuildInputs = [ pkg-config ];
buildInputs = [ openssl ] buildInputs = [ openssl ]
++ lib.optionals stdenv.isDarwin [ Security ]; ++ lib.optionals stdenv.isDarwin [ Security ];
preCheck = ''
export PGRX_HOME=$(mktemp -d)
'';
checkFlags = [
# requires pgrx to be properly initialized with cargo pgrx init
"--skip=command::schema::tests::test_parse_managed_postmasters"
];
meta = with lib; { meta = with lib; {
description = "Build Postgres Extensions with Rust!"; description = "Build Postgres Extensions with Rust!";
homepage = "https://github.com/tcdi/pgrx"; homepage = "https://github.com/tcdi/pgrx";