1{ lib
2, buildGoModule
3, fetchFromGitHub
4}:
5
6buildGoModule rec {
7 pname = "dbmate";
8 version = "2.19.0";
9
10 src = fetchFromGitHub {
11 owner = "amacneil";
12 repo = "dbmate";
13 rev = "refs/tags/v${version}";
14 hash = "sha256-LNA66Uz/cgwx3Bq2FXpW7+3vh2VXWPyyrlAcRK5MlGU=";
15 };
16
17 vendorHash = "sha256-ypGPVJ0cfHMGDqOV2xt5MQs9X3YtCW8+sChQ9SPOZAY=";
18
19 doCheck = false;
20
21 meta = with lib; {
22 description = "Database migration tool";
23 mainProgram = "dbmate";
24 homepage = "https://github.com/amacneil/dbmate";
25 changelog = "https://github.com/amacneil/dbmate/releases/tag/v${version}";
26 license = licenses.mit;
27 maintainers = with maintainers; [ manveru ];
28 };
29}