From 86efb7f659f0fe661a6cd6344950f27c63c1658e Mon Sep 17 00:00:00 2001 From: Wolfgang Walther Date: Mon, 7 Jul 2025 10:09:27 +0200 Subject: [PATCH] cargo-pgrx: modernize --- .../tools/rust/cargo-pgrx/default.nix | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/pkgs/development/tools/rust/cargo-pgrx/default.nix b/pkgs/development/tools/rust/cargo-pgrx/default.nix index 4dddf7ee747c..2dec7263f7a5 100644 --- a/pkgs/development/tools/rust/cargo-pgrx/default.nix +++ b/pkgs/development/tools/rust/cargo-pgrx/default.nix @@ -1,11 +1,9 @@ { - lib, - darwin, fetchCrate, + lib, openssl, pkg-config, rustPlatform, - stdenv, }: let @@ -15,16 +13,16 @@ let hash, cargoHash, }: - rustPlatform.buildRustPackage rec { + rustPlatform.buildRustPackage { pname = "cargo-pgrx"; inherit version; src = fetchCrate { - inherit version pname hash; + inherit version hash; + pname = "cargo-pgrx"; }; - useFetchCargoVendor = true; inherit cargoHash; nativeBuildInputs = [ @@ -44,12 +42,12 @@ let "--skip=command::schema::tests::test_parse_managed_postmasters" ]; - meta = with lib; { + meta = { description = "Build Postgres Extensions with Rust"; homepage = "https://github.com/pgcentralfoundation/pgrx"; changelog = "https://github.com/pgcentralfoundation/pgrx/releases/tag/v${version}"; - license = licenses.mit; - maintainers = with maintainers; [ + license = lib.licenses.mit; + maintainers = with lib.maintainers; [ happysalada matthiasbeyer ];