Skip to content

Commit

Permalink
cargo-pgrx: 0.9.8 -> 0.10.0
Browse files Browse the repository at this point in the history
  • Loading branch information
happysalada authored and Yt committed Sep 6, 2023
1 parent 024f043 commit 109efd4
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions pkgs/development/tools/rust/cargo-pgrx/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,23 +2,32 @@

let
pname = "cargo-pgrx";
version = "0.9.8";
version = "0.10.0";
in
rustPlatform.buildRustPackage rec {
inherit version pname;

src = fetchCrate {
inherit version pname;
hash = "sha256-Sk9fz84EheP+Ohq2e2E1q7dKDPE2Y4QSsHGlNvNb/g0=";
hash = "sha256-iqKcYp0dsay3/OE+N6KLjGEnloaImyS5xNaVciOYERc=";
};

cargoHash = "sha256-MSANrOjpcyKuoxyomCspxjYwzlT7BLJE3CseczOfOJY=";
cargoHash = "sha256-IWqHt6RL5ICBarmVx7QNjt3JrS0JYi/odEjPkLYMsPI=";

nativeBuildInputs = [ pkg-config ];

buildInputs = [ openssl ]
++ 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; {
description = "Build Postgres Extensions with Rust!";
homepage = "https://github.com/tcdi/pgrx";
Expand Down

0 comments on commit 109efd4

Please sign in to comment.