9c6ee729d6
GitOrigin-RevId: 6cee3b5893090b0f5f0a06b4cf42ca4e60e5d222
28 lines
844 B
Nix
28 lines
844 B
Nix
{ lib, buildGoModule, fetchFromGitHub }:
|
|
|
|
buildGoModule rec {
|
|
pname = "go-migrate";
|
|
version = "4.16.2";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "golang-migrate";
|
|
repo = "migrate";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-kP9wA8LSkdICy5NfQtzxeGUrqFqf6XpzkfCBaNAP8jE=";
|
|
};
|
|
|
|
proxyVendor = true; # darwin/linux hash mismatch
|
|
vendorHash = "sha256-wP6nwXbxU2GUNUKv+hQptuS4eHWUyGlg8gkTouSx6Hg=";
|
|
|
|
subPackages = [ "cmd/migrate" ];
|
|
|
|
tags = [ "postgres" "mysql" "redshift" "cassandra" "spanner" "cockroachdb" "clickhouse" "mongodb" "sqlserver" "firebird" "neo4j" "pgx" ];
|
|
|
|
meta = with lib; {
|
|
homepage = "https://github.com/golang-migrate/migrate";
|
|
description = "Database migrations. CLI and Golang library";
|
|
maintainers = with maintainers; [ offline ];
|
|
license = licenses.mit;
|
|
mainProgram = "migrate";
|
|
};
|
|
}
|