Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib, buildGoModule, fetchFromGitHub }:
2
3buildGoModule rec {
4 pname = "go-migrate";
5 version = "4.15.2";
6
7 src = fetchFromGitHub {
8 owner = "golang-migrate";
9 repo = "migrate";
10 rev = "v${version}";
11 sha256 = "sha256-nVR6zMG/a4VbGgR9a/6NqMNYwFTifAZW3F6rckvOEJM=";
12 };
13
14 vendorSha256 = "sha256-lPNPl6fqBT3XLQie9z93j91FLtrMjKbHnXUQ6b4lDb4=";
15
16 subPackages = [ "cmd/migrate" ];
17
18 tags = [ "postgres" "mysql" "redshift" "cassandra" "spanner" "cockroachdb" "clickhouse" "mongodb" "sqlserver" "firebird" "neo4j" "pgx" ];
19
20 meta = with lib; {
21 homepage = "https://github.com/golang-migrate/migrate";
22 description = "Database migrations. CLI and Golang library";
23 maintainers = with maintainers; [ offline ];
24 license = licenses.mit;
25 mainProgram = "migrate";
26 };
27}