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

29 lines
844 B
Nix
Raw Normal View History

{ lib, buildGoModule, fetchFromGitHub }:
buildGoModule rec {
pname = "go-migrate";
version = "4.16.2";
src = fetchFromGitHub {
owner = "golang-migrate";
repo = "migrate";
rev = "v${version}";
sha256 = "sha256-kP9wA8LSkdICy5NfQtzxeGUrqFqf6XpzkfCBaNAP8jE=";
};
proxyVendor = true; # darwin/linux hash mismatch
vendorHash = "sha256-wP6nwXbxU2GUNUKv+hQptuS4eHWUyGlg8gkTouSx6Hg=";
subPackages = [ "cmd/migrate" ];
tags = [ "postgres" "mysql" "redshift" "cassandra" "spanner" "cockroachdb" "clickhouse" "mongodb" "sqlserver" "firebird" "neo4j" "pgx" ];
meta = with lib; {
homepage = "https://github.com/golang-migrate/migrate";
description = "Database migrations. CLI and Golang library";
maintainers = with maintainers; [ offline ];
license = licenses.mit;
mainProgram = "migrate";
};
}