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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

29 lines
945 B
Nix
Raw Normal View History

{ lib, buildGoModule, fetchFromGitHub }:
2020-05-28 05:55:01 +00:00
buildGoModule rec {
pname = "go-migrate";
2024-04-19 15:18:24 +00:00
version = "4.17.1";
2020-05-28 05:55:01 +00:00
src = fetchFromGitHub {
owner = "golang-migrate";
repo = "migrate";
rev = "v${version}";
2024-04-19 15:18:24 +00:00
sha256 = "sha256-9PJ3XxEA2PEaPFE3BbZkJB8XdJmm0gZf2Ko5T9DAZBw=";
2020-05-28 05:55:01 +00:00
};
2023-06-12 22:20:34 +00:00
proxyVendor = true; # darwin/linux hash mismatch
2024-04-19 15:18:24 +00:00
vendorHash = "sha256-03nNN1FkGee01gNOmIASc2B7mMTes1pEDc6Lo08dhcw=";
2020-05-28 05:55:01 +00:00
subPackages = [ "cmd/migrate" ];
tags = [ "cassandra" "clickhouse" "cockroachdb" "crate" "firebird" "mongodb" "multistmt" "mysql" "neo4j" "pgx" "pgx5" "postgres" "ql" "redshift" "rqlite" "shell" "snowflake" "spanner" "sqlite3" "sqlserver" "stub" "testing" "yugabytedb" ];
2022-03-30 00:09:31 +00:00
meta = with lib; {
2022-03-30 00:09:31 +00:00
homepage = "https://github.com/golang-migrate/migrate";
description = "Database migrations. CLI and Golang library";
2020-05-28 05:55:01 +00:00
maintainers = with maintainers; [ offline ];
2022-03-30 00:09:31 +00:00
license = licenses.mit;
2021-09-05 20:38:45 +00:00
mainProgram = "migrate";
2020-05-28 05:55:01 +00:00
};
}