nixpkgs/pkgs/development/tools/go-migrate/default.nix

25 lines
644 B
Nix
Raw Normal View History

2020-05-28 06:55:01 +01:00
{ stdenv, buildGoModule, fetchFromGitHub }:
buildGoModule rec {
pname = "go-migrate";
2020-09-04 23:46:40 +01:00
version = "4.12.2";
2020-05-28 06:55:01 +01:00
src = fetchFromGitHub {
owner = "golang-migrate";
repo = "migrate";
rev = "v${version}";
2020-09-04 23:46:40 +01:00
sha256 = "0vrc9y90aamj618sfipq2sgzllhdr4hmicj4yvl147klwb1rxlz6";
2020-05-28 06:55:01 +01:00
};
2020-09-04 23:46:40 +01:00
vendorSha256 = "0jpz5xvwsw4l7nmi7s1grvbfy4xjp50hrjycwicgv2ll719gz5v0";
2020-05-28 06:55:01 +01:00
subPackages = [ "cmd/migrate" ];
meta = with stdenv.lib; {
homepage = "https://github.com/golang-migrate/migrate";
description = "Database migrations. CLI and Golang library";
2020-05-28 06:55:01 +01:00
maintainers = with maintainers; [ offline ];
license = licenses.mit;
};
}