2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv, buildGoModule, fetchFromGitHub }:
|
2020-05-28 06:55:01 +01:00
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "go-migrate";
|
2020-11-30 20:57:47 +00:00
|
|
|
version = "4.14.1";
|
2020-05-28 06:55:01 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "golang-migrate";
|
|
|
|
repo = "migrate";
|
|
|
|
rev = "v${version}";
|
2020-11-30 20:57:47 +00:00
|
|
|
sha256 = "1mgs3bngghmirmn0pw351m54darv8d5iymlxcjqw3vr0cyn5aqj0";
|
2020-05-28 06:55:01 +01:00
|
|
|
};
|
|
|
|
|
2020-11-30 20:57:47 +00:00
|
|
|
vendorSha256 = "071gfyx6iqla8ir7ianw1z62rdsds9shakzqs9wn34ll1kdbd4rv";
|
2020-05-28 06:55:01 +01:00
|
|
|
|
|
|
|
subPackages = [ "cmd/migrate" ];
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-05-28 06:55:01 +01:00
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|