mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-09-15 11:50:09 +00:00
43 lines
857 B
Nix
43 lines
857 B
Nix
{
|
|
lib,
|
|
buildGoModule,
|
|
fetchFromGitHub,
|
|
nix-update-script,
|
|
|
|
# testing
|
|
sqlite,
|
|
}:
|
|
|
|
buildGoModule (finalAttrs: {
|
|
pname = "dbmate";
|
|
version = "2.35.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "amacneil";
|
|
repo = "dbmate";
|
|
tag = "v${finalAttrs.version}";
|
|
hash = "sha256-aWouIk+EHuccJL0EXEdYgSPD0afAwO69S4lSehEDVKU=";
|
|
};
|
|
|
|
vendorHash = "sha256-BUqSBLc9MQpXht9sQ8HKt2sHGuf1OevKEZtN8nik+F4=";
|
|
|
|
tags = [ "fts5" ];
|
|
|
|
nativeCheckInputs = [
|
|
sqlite
|
|
];
|
|
|
|
passthru.updateScript = nix-update-script { };
|
|
|
|
meta = {
|
|
description = "Database migration tool";
|
|
mainProgram = "dbmate";
|
|
homepage = "https://github.com/amacneil/dbmate";
|
|
changelog = "https://github.com/amacneil/dbmate/releases/tag/${finalAttrs.src.tag}";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [
|
|
sarahec
|
|
];
|
|
};
|
|
})
|