Files
2026-07-03 17:07:08 +00:00

36 lines
778 B
Nix

{
lib,
buildGoModule,
fetchFromGitHub,
postgresql,
}:
buildGoModule (finalAttrs: {
pname = "pg-schema-diff";
version = "1.0.7";
src = fetchFromGitHub {
owner = "stripe";
repo = "pg-schema-diff";
tag = "v${finalAttrs.version}";
hash = "sha256-7N9n0puEyCOq3MKXRLNAgtgrFEC4Sh9d6OK9U/h4xCQ=";
};
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";
};
})