Files
2026-05-20 18:23:09 +00:00

56 lines
1.0 KiB
Nix

{
buildGoModule,
fetchFromGitHub,
lib,
libpg_query,
xxhash,
testers,
}:
buildGoModule (finalAttrs: {
pname = "pgroll";
version = "0.16.2";
src = fetchFromGitHub {
owner = "xataio";
repo = "pgroll";
tag = "v${finalAttrs.version}";
hash = "sha256-pvc+hKWUY8OPKMU4QNwuTlw8ewhiDrFcS1q/hcOzqSk=";
};
proxyVendor = true;
vendorHash = "sha256-/oEZbST2Q2HG+qu8nH+mdk/U58aTMznndDHDbFg8fCk=";
excludedPackages = [
"dev"
"tools"
];
buildInputs = [
libpg_query
xxhash
];
ldflags = [
"-s"
"-w"
"-X github.com/xataio/pgroll/cmd.Version=${finalAttrs.version}"
];
# Tests require a running docker daemon
doCheck = false;
passthru.tests.version = testers.testVersion {
package = finalAttrs.finalPackage;
};
meta = {
description = "PostgreSQL zero-downtime migrations made easy";
license = lib.licenses.asl20;
mainProgram = "pgroll";
homepage = "https://github.com/xataio/pgroll";
maintainers = with lib.maintainers; [ ilyakooo0 ];
};
})