2021-01-25 08:26:54 +00:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub }:
|
2020-05-28 05:55:01 +00:00
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "go-migrate";
|
2023-12-21 00:51:40 +00:00
|
|
|
version = "4.17.0";
|
2020-05-28 05:55:01 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "golang-migrate";
|
|
|
|
repo = "migrate";
|
|
|
|
rev = "v${version}";
|
2023-12-21 00:51:40 +00:00
|
|
|
sha256 = "sha256-lsqSWhozTdLPwqnwYMLxH3kF62MsUCcjzKJ7qTU79qQ=";
|
2020-05-28 05:55:01 +00:00
|
|
|
};
|
|
|
|
|
2023-06-12 22:20:34 +00:00
|
|
|
proxyVendor = true; # darwin/linux hash mismatch
|
2023-12-21 00:51:40 +00:00
|
|
|
vendorHash = "sha256-3otiRbswhENs/YvKKr+ZeodLWtK7fhCjEtlMDlkLOlY=";
|
2020-05-28 05:55:01 +00:00
|
|
|
|
|
|
|
subPackages = [ "cmd/migrate" ];
|
|
|
|
|
2022-03-30 00:09:31 +00:00
|
|
|
tags = [ "postgres" "mysql" "redshift" "cassandra" "spanner" "cockroachdb" "clickhouse" "mongodb" "sqlserver" "firebird" "neo4j" "pgx" ];
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2022-03-30 00:09:31 +00:00
|
|
|
homepage = "https://github.com/golang-migrate/migrate";
|
2020-10-11 05:55:05 +00:00
|
|
|
description = "Database migrations. CLI and Golang library";
|
2020-05-28 05:55:01 +00:00
|
|
|
maintainers = with maintainers; [ offline ];
|
2022-03-30 00:09:31 +00:00
|
|
|
license = licenses.mit;
|
2021-09-05 20:38:45 +00:00
|
|
|
mainProgram = "migrate";
|
2020-05-28 05:55:01 +00:00
|
|
|
};
|
|
|
|
}
|