diff options
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/development/tools/rust/cargo-pgrx/default.nix | 29 | ||||
-rw-r--r-- | pkgs/top-level/all-packages.nix | 3 |
2 files changed, 32 insertions, 0 deletions
diff --git a/pkgs/development/tools/rust/cargo-pgrx/default.nix b/pkgs/development/tools/rust/cargo-pgrx/default.nix new file mode 100644 index 0000000000000..4a00caf9fed99 --- /dev/null +++ b/pkgs/development/tools/rust/cargo-pgrx/default.nix @@ -0,0 +1,29 @@ +{ lib, stdenv, fetchCrate, rustPlatform, pkg-config, openssl, Security }: + +let + pname = "cargo-pgrx"; + version = "0.9.2"; +in +rustPlatform.buildRustPackage rec { + inherit version pname; + + src = fetchCrate { + inherit version pname; + hash = "sha256-z5YmeUBXLyPfodKAI/t2I4sMg0nbdo0thTgoT/kSuwo="; + }; + + cargoHash = "sha256-Ox/jk2+cLNpfBU5IxILMPYaFi56BmfehmA+WDaEkae0="; + + nativeBuildInputs = [ pkg-config ]; + + buildInputs = [ openssl ] + ++ lib.optionals stdenv.isDarwin [ Security ]; + + meta = with lib; { + description = "Build Postgres Extensions with Rust!"; + homepage = "https://github.com/tcdi/pgrx"; + changelog = "https://github.com/tcdi/pgrx/releases/tag/v${version}"; + license = licenses.mit; + maintainers = with maintainers; [ happysalada ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index eb309c9b283f3..4923a2b55bedd 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -16462,6 +16462,9 @@ with pkgs; buildPgxExtension = callPackage ../development/tools/rust/cargo-pgx/buildPgxExtension.nix { inherit (darwin.apple_sdk.frameworks) Security; }; + cargo-pgrx = callPackage ../development/tools/rust/cargo-pgrx/default.nix { + inherit (darwin.apple_sdk.frameworks) Security; + }; cargo-release = callPackage ../development/tools/rust/cargo-release { }; cargo-rr = callPackage ../development/tools/rust/cargo-rr { }; cargo-tarpaulin = callPackage ../development/tools/analysis/cargo-tarpaulin { |