2021-02-05 17:12:51 +00:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub }:
|
2020-09-25 04:45:31 +00:00
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "go-migrate";
|
2024-09-19 14:19:46 +00:00
|
|
|
version = "4.18.1";
|
2020-09-25 04:45:31 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "golang-migrate";
|
|
|
|
repo = "migrate";
|
|
|
|
rev = "v${version}";
|
2024-09-19 14:19:46 +00:00
|
|
|
sha256 = "sha256-ZZeurnoFcObrK75zkIZvz9ycdDP9AM3uX6h/4bMWpGc=";
|
2020-09-25 04:45:31 +00:00
|
|
|
};
|
|
|
|
|
2023-07-15 17:15:38 +00:00
|
|
|
proxyVendor = true; # darwin/linux hash mismatch
|
2024-09-19 14:19:46 +00:00
|
|
|
vendorHash = "sha256-Zaq88oF5rSCSv736afyKDvTNCSIyrIGTN0kuJWqS7tg=";
|
2020-09-25 04:45:31 +00:00
|
|
|
|
|
|
|
subPackages = [ "cmd/migrate" ];
|
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
tags = [ "cassandra" "clickhouse" "cockroachdb" "crate" "firebird" "mongodb" "multistmt" "mysql" "neo4j" "pgx" "pgx5" "postgres" "ql" "redshift" "rqlite" "shell" "snowflake" "spanner" "sqlite3" "sqlserver" "stub" "testing" "yugabytedb" ];
|
2022-04-15 01:41:22 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2022-04-15 01:41:22 +00:00
|
|
|
homepage = "https://github.com/golang-migrate/migrate";
|
2020-10-19 00:13:06 +00:00
|
|
|
description = "Database migrations. CLI and Golang library";
|
2020-09-25 04:45:31 +00:00
|
|
|
maintainers = with maintainers; [ offline ];
|
2022-04-15 01:41:22 +00:00
|
|
|
license = licenses.mit;
|
2021-09-18 10:52:07 +00:00
|
|
|
mainProgram = "migrate";
|
2020-09-25 04:45:31 +00:00
|
|
|
};
|
|
|
|
}
|