2021-02-05 17:12:51 +00:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub }:
|
2020-09-25 04:45:31 +00:00
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "go-migrate";
|
2022-06-16 17:23:12 +00:00
|
|
|
version = "4.15.2";
|
2020-09-25 04:45:31 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "golang-migrate";
|
|
|
|
repo = "migrate";
|
|
|
|
rev = "v${version}";
|
2022-06-16 17:23:12 +00:00
|
|
|
sha256 = "sha256-nVR6zMG/a4VbGgR9a/6NqMNYwFTifAZW3F6rckvOEJM=";
|
2020-09-25 04:45:31 +00:00
|
|
|
};
|
|
|
|
|
2022-06-16 17:23:12 +00:00
|
|
|
vendorSha256 = "sha256-lPNPl6fqBT3XLQie9z93j91FLtrMjKbHnXUQ6b4lDb4=";
|
2020-09-25 04:45:31 +00:00
|
|
|
|
|
|
|
subPackages = [ "cmd/migrate" ];
|
|
|
|
|
2022-04-15 01:41:22 +00:00
|
|
|
tags = [ "postgres" "mysql" "redshift" "cassandra" "spanner" "cockroachdb" "clickhouse" "mongodb" "sqlserver" "firebird" "neo4j" "pgx" ];
|
|
|
|
|
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
|
|
|
};
|
|
|
|
}
|