16 rustPlatform.buildRustPackage rec {
22 inherit version pname hash;
27 nativeBuildInputs = lib.optionals stdenv.isLinux [
31 buildInputs = lib.optionals stdenv.isLinux [
33 ] ++ lib.optionals stdenv.isDarwin [
34 darwin.apple_sdk.frameworks.Security
38 export PGRX_HOME=$(mktemp -d)
42 # requires pgrx to be properly initialized with cargo pgrx init
43 "--skip=command::schema::tests::test_parse_managed_postmasters"
47 description = "Build Postgres Extensions with Rust";
48 homepage = "https://github.com/pgcentralfoundation/pgrx";
49 changelog = "https://github.com/pgcentralfoundation/pgrx/releases/tag/v${version}";
50 license = licenses.mit;
51 maintainers = with maintainers; [ happysalada ];
52 mainProgram = "cargo-pgrx";
57 cargo-pgrx_0_10_2 = generic {
59 hash = "sha256-FqjfbJmSy5UCpPPPk4bkEyvQCnaH9zYtkI7txgIn+ls=";
60 cargoHash = "sha256-syZ3cQq8qDHBLvqmNDGoxeK6zXHJ47Jwkw3uhaXNCzI=";
63 cargo-pgrx_0_11_2 = generic {
65 hash = "sha256-8NlpMDFaltTIA8G4JioYm8LaPJ2RGKH5o6sd6lBHmmM=";
66 cargoHash = "sha256-qTb3JV3u42EilaK2jP9oa5D09mkuHyRbGGRs9Rg4TzI=";
69 cargo-pgrx_0_11_3 = generic {
71 hash = "sha256-UHIfwOdXoJvR4Svha6ud0FxahP1wPwUtviUwUnTmLXU=";
72 cargoHash = "sha256-j4HnD8Zt9uhlV5N7ldIy9564o9qFEqs5KfXHmnQ1WEw=";