diff --git a/maintainers/maintainer-list.nix b/maintainers/maintainer-list.nix index a602732ce4eb..7823290ce80c 100644 --- a/maintainers/maintainer-list.nix +++ b/maintainers/maintainer-list.nix @@ -3442,6 +3442,11 @@ githubId = 10164833; name = "Birk Bohne"; }; + bitbloxhub = { + name = "bitbloxhub"; + github = "bitbloxhub"; + githubId = 45184892; + }; bizmyth = { email = "andrew.p.council@gmail.com"; github = "bizmythy"; diff --git a/pkgs/by-name/pg/pg-schema-diff/package.nix b/pkgs/by-name/pg/pg-schema-diff/package.nix new file mode 100644 index 000000000000..f4848d0857ff --- /dev/null +++ b/pkgs/by-name/pg/pg-schema-diff/package.nix @@ -0,0 +1,31 @@ +{ + lib, + buildGoModule, + fetchFromGitHub, + postgresql, +}: +buildGoModule (finalAttrs: { + pname = "pg-schema-diff"; + version = "1.0.2"; + + src = fetchFromGitHub { + owner = "stripe"; + repo = "pg-schema-diff"; + tag = "v${finalAttrs.version}"; + hash = "sha256-u0niTTqrzsI4u0OGY5qkgbitadcbEK/ElFGnPJsEMwo="; + }; + + nativeCheckInputs = [ + postgresql + ]; + + vendorHash = "sha256-Hs3xrGP8eJwW3rQ9nViB9sqC8spjHV6rCoy1u/SYHak="; + + 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"; + }; +})