1 { lib, buildGoModule, fetchFromGitHub, installShellFiles, testers, atlas }:
7 src = fetchFromGitHub {
11 hash = "sha256-D6dHHTxD2eObmXwYntIOtcPsU1vP+K289n+XVoaGUVc=";
14 modRoot = "cmd/atlas";
17 vendorHash = "sha256-SFG//hc5vLQXC3SeEn4YRcc82PItYZy+TNqzq19sRnI=";
19 nativeBuildInputs = [ installShellFiles ];
21 ldflags = [ "-s" "-w" "-X ariga.io/atlas/cmd/atlas/internal/cmdapi.version=v${version}" ];
23 subPackages = [ "." ];
26 installShellCompletion --cmd atlas \
27 --bash <($out/bin/atlas completion bash) \
28 --fish <($out/bin/atlas completion fish) \
29 --zsh <($out/bin/atlas completion zsh)
32 passthru.tests.version = testers.testVersion {
34 command = "atlas version";
35 version = "v${version}";
39 description = "Modern tool for managing database schemas";
40 homepage = "https://atlasgo.io/";
41 changelog = "https://github.com/ariga/atlas/releases/tag/v${version}";
42 license = licenses.asl20;
43 maintainers = with maintainers; [ aaronjheng ];
44 mainProgram = "atlas";