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

26 lines
661 B
Nix
Raw Normal View History

{ lib, buildGoModule, fetchFromGitHub }:
2020-05-28 07:55:01 +02:00
buildGoModule rec {
pname = "go-migrate";
2021-10-29 21:20:57 +02:00
version = "4.15.1";
2020-05-28 07:55:01 +02:00
src = fetchFromGitHub {
owner = "golang-migrate";
repo = "migrate";
rev = "v${version}";
2021-10-29 21:20:57 +02:00
sha256 = "sha256-t4F4jvXexxCqKINaaczeG/B2vLSG87/qZ+VQitfAF4Y=";
2020-05-28 07:55:01 +02:00
};
2021-10-29 21:20:57 +02:00
vendorSha256 = "sha256-qgjU8mUdk8S0VHmWiTK/5euwhRQ4y3o4oRxG2EHF+7E=";
2020-05-28 07:55:01 +02:00
subPackages = [ "cmd/migrate" ];
meta = with lib; {
2020-05-28 07:55:01 +02:00
homepage = "https://github.com/golang-migrate/migrate";
description = "Database migrations. CLI and Golang library";
2020-05-28 07:55:01 +02:00
maintainers = with maintainers; [ offline ];
license = licenses.mit;
2021-09-05 22:38:45 +02:00
mainProgram = "migrate";
2020-05-28 07:55:01 +02:00
};
}