14 src = fetchFromGitHub {
18 hash = "sha256-synQZAOnX5Xw5d7pHPr7eaycf/YErktCjlsPVwbyLks=";
21 modRoot = "cmd/atlas";
24 vendorHash = "sha256-bQNcLFSMED5zFxf319fAeLLrVeZMCV/33s9hCm1elFs=";
26 nativeBuildInputs = [ installShellFiles ];
31 "-X ariga.io/atlas/cmd/atlas/internal/cmdapi.version=v${version}"
34 subPackages = [ "." ];
37 installShellCompletion --cmd atlas \
38 --bash <($out/bin/atlas completion bash) \
39 --fish <($out/bin/atlas completion fish) \
40 --zsh <($out/bin/atlas completion zsh)
43 passthru.tests.version = testers.testVersion {
45 command = "atlas version";
46 version = "v${version}";
50 description = "Modern tool for managing database schemas";
51 homepage = "https://atlasgo.io/";
52 changelog = "https://github.com/ariga/atlas/releases/tag/v${version}";
53 license = licenses.asl20;
54 maintainers = with maintainers; [ aaronjheng ];
55 mainProgram = "atlas";