571c71e6f7
We are migrating packages that meet below requirements: 1. using `callPackage` 2. called path is a directory 3. overriding set is empty (`{ }`) 4. not containing path expressions other than relative path (to makenixpkgs-vet happy) 5. not referenced by nix files outside of the directory, other than`pkgs/top-level/all-packages.nix` 6. not referencing nix files outside of the directory 7. not referencing `default.nix` (since it's changed to `package.nix`) 8. `outPath` doesn't change after migration The tool is here: https://github.com/Aleksanaa/by-name-migrate.
29 lines
945 B
Nix
29 lines
945 B
Nix
{ lib, buildGoModule, fetchFromGitHub }:
|
|
|
|
buildGoModule rec {
|
|
pname = "go-migrate";
|
|
version = "4.18.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "golang-migrate";
|
|
repo = "migrate";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-ZZeurnoFcObrK75zkIZvz9ycdDP9AM3uX6h/4bMWpGc=";
|
|
};
|
|
|
|
proxyVendor = true; # darwin/linux hash mismatch
|
|
vendorHash = "sha256-Zaq88oF5rSCSv736afyKDvTNCSIyrIGTN0kuJWqS7tg=";
|
|
|
|
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" ];
|
|
|
|
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";
|
|
};
|
|
}
|