1 { lib, buildGoModule, fetchFromGitHub, installShellFiles, testers, atlas }:
7 src = fetchFromGitHub {
11 hash = "sha256-i0nqjlL22sM8eVXCD/SBJyNdy0l0Hq4rjW0Lr3CRZlE=";
14 modRoot = "cmd/atlas";
17 vendorHash = "sha256-48UmLwp93SjwPPrdySFVApjVf1Rsj3oNhi1lha4ZvyE=";
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 = "A 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 = [ maintainers.marsam ];
44 mainProgram = "atlas";