2020-05-28 06:55:01 +01:00
|
|
|
{ stdenv, buildGoModule, fetchFromGitHub }:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "go-migrate";
|
2020-10-18 10:51:08 +01:00
|
|
|
version = "4.13.0";
|
2020-05-28 06:55:01 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "golang-migrate";
|
|
|
|
repo = "migrate";
|
|
|
|
rev = "v${version}";
|
2020-10-18 10:51:08 +01:00
|
|
|
sha256 = "0rzx974cxsipbnggl3n4q6zsvm313svrg718gscydygk41m9nql9";
|
2020-05-28 06:55:01 +01:00
|
|
|
};
|
|
|
|
|
2020-10-18 10:51:08 +01:00
|
|
|
vendorSha256 = "1107syipynlfibzljyfgz81v1avi8axvsjpmrpj990pm83r9svc6";
|
2020-05-28 06:55:01 +01:00
|
|
|
|
|
|
|
subPackages = [ "cmd/migrate" ];
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = "https://github.com/golang-migrate/migrate";
|
2020-10-11 06:55:05 +01:00
|
|
|
description = "Database migrations. CLI and Golang library";
|
2020-05-28 06:55:01 +01:00
|
|
|
maintainers = with maintainers; [ offline ];
|
|
|
|
license = licenses.mit;
|
|
|
|
};
|
|
|
|
}
|