depot/third_party/nixpkgs/pkgs/development/tools/database/dbmate/default.nix

30 lines
686 B
Nix
Raw Normal View History

{ lib
, buildGoModule
, fetchFromGitHub
}:
buildGoModule rec {
pname = "dbmate";
version = "2.20.0";
src = fetchFromGitHub {
owner = "amacneil";
repo = "dbmate";
rev = "refs/tags/v${version}";
hash = "sha256-5lsScWX7oaYU3IzqBYK41g96bLn2Er0XRq3nUgXI+Vk=";
};
vendorHash = "sha256-BtMvaMb36F9c1CJb7qAhkMW8jxuPJqlKRSlMzkEOMAY=";
doCheck = false;
meta = with lib; {
description = "Database migration tool";
mainProgram = "dbmate";
homepage = "https://github.com/amacneil/dbmate";
changelog = "https://github.com/amacneil/dbmate/releases/tag/v${version}";
license = licenses.mit;
maintainers = with maintainers; [ manveru ];
};
}