mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-17 03:03:37 +00:00
815fed2e05
0.6.1 keeping until timescaledb_toolkit got upgraded to 1.15.0 0.7.1 because timescaledb_toolkit 1.15.0 needs it 0.7.4 because it is the most recent cargo-pgx version
26 lines
746 B
Nix
26 lines
746 B
Nix
{ lib, stdenv, fetchCrate, rustPlatform, pkg-config, openssl, Security }:
|
||
|
||
rustPlatform.buildRustPackage rec {
|
||
pname = "cargo-pgx";
|
||
version = "0.7.4";
|
||
|
||
src = fetchCrate {
|
||
inherit version pname;
|
||
sha256 = "sha256-uyMWfxI+A8mws8oZFm2pmvr7hJgSNIb328SrVtIDGdA=";
|
||
};
|
||
|
||
cargoSha256 = "sha256-RgpL/hJdfrtLDANs5U53m5a6aEEAhZ9SFOIM7V8xABM=";
|
||
|
||
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 ];
|
||
};
|
||
}
|