nixpkgs/pkgs/development/tools/rust/cargo-pgx/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

26 lines
746 B
Nix
Raw Normal View History

2022-08-09 10:28:31 +00:00
{ lib, stdenv, fetchCrate, rustPlatform, pkg-config, openssl, Security }:
rustPlatform.buildRustPackage rec {
pname = "cargo-pgx";
2022-12-03 11:19:05 +00:00
version = "0.6.0";
2022-08-09 10:28:31 +00:00
src = fetchCrate {
inherit version pname;
2022-12-03 11:19:05 +00:00
sha256 = "sha256-CXOInyT0fY17e4iuGhUpR9EPd2M8jauR5TKpPlhTJoQ=";
2022-08-09 10:28:31 +00:00
};
2022-12-03 11:19:05 +00:00
cargoSha256 = "sha256-RtPFFIuurSPMhGLcGLOu0em1biimVkTaAKP5EUPtQ9U=";
2022-08-09 10:28:31 +00:00
nativeBuildInputs = [ pkg-config ];
buildInputs = [ openssl ]
++ lib.optionals stdenv.isDarwin [ Security ];
meta = with lib; {
description = "Cargo subcommand for pgx to make Postgres extension development easy";
homepage = "https://github.com/tcdi/pgx/tree/v${version}/cargo-pgx";
license = licenses.mit;
maintainers = with maintainers; [ typetetris ];
};
}