Files
nixpkgs/pkgs/by-name/pg/pg-schema-diff/package.nix
2026-08-07 00:22:37 +00:00

36 lines
778 B
Nix

{
lib,
buildGoModule,
fetchFromGitHub,
postgresql,
}:
buildGoModule (finalAttrs: {
pname = "pg-schema-diff";
version = "1.0.9";
src = fetchFromGitHub {
owner = "stripe";
repo = "pg-schema-diff";
tag = "v${finalAttrs.version}";
hash = "sha256-ycp4dM7PwuKH71Od4qqcwJ5JOJfSHv/hq4jrRYljfjM=";
};
subPackages = [
"cmd/pg-schema-diff"
];
nativeCheckInputs = [
postgresql
];
vendorHash = "sha256-9tronDAe3/5bBtiMW04YGSgxww/F7xlq84sjYFTfxnk=";
meta = {
description = "Go library for diffing Postgres schemas and generating SQL migrations";
homepage = "https://github.com/stripe/pg-schema-diff";
license = lib.licenses.mit;
maintainers = [ lib.maintainers.bitbloxhub ];
mainProgram = "pg-schema-diff";
};
})