2021-02-05 17:12:51 +00:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub }:
|
2020-09-25 04:45:31 +00:00
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "go-migrate";
|
2021-12-06 16:07:01 +00:00
|
|
|
version = "4.15.1";
|
2020-09-25 04:45:31 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "golang-migrate";
|
|
|
|
repo = "migrate";
|
|
|
|
rev = "v${version}";
|
2021-12-06 16:07:01 +00:00
|
|
|
sha256 = "sha256-t4F4jvXexxCqKINaaczeG/B2vLSG87/qZ+VQitfAF4Y=";
|
2020-09-25 04:45:31 +00:00
|
|
|
};
|
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
vendorSha256 = "sha256-qgjU8mUdk8S0VHmWiTK/5euwhRQ4y3o4oRxG2EHF+7E=";
|
2020-09-25 04:45:31 +00:00
|
|
|
|
|
|
|
subPackages = [ "cmd/migrate" ];
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-09-25 04:45:31 +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 ];
|
|
|
|
license = licenses.mit;
|
2021-09-18 10:52:07 +00:00
|
|
|
mainProgram = "migrate";
|
2020-09-25 04:45:31 +00:00
|
|
|
};
|
|
|
|
}
|