depot/third_party/nixpkgs/pkgs/development/tools/go-migrate/default.nix
Default email 58f8944c92 Project import generated by Copybara.
GitOrigin-RevId: 5aba0fe9766a7201a336249fd6cb76e0d7ba2faf
2020-09-24 23:45:31 -05:00

24 lines
645 B
Nix

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