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-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";
description = "Database migrations. CLI and Golang library";
2020-05-28 06:55:01 +01:00
maintainers = with maintainers; [ offline ];
license = licenses.mit;
};
}