Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)

atlas: 0.14.1 -> 0.15.0

+11 -6
+11 -6
pkgs/development/tools/database/atlas/default.nix
··· 1 - { lib, buildGoModule, fetchFromGitHub, installShellFiles }: 2 3 buildGoModule rec { 4 pname = "atlas"; 5 - version = "0.14.1"; 6 7 src = fetchFromGitHub { 8 owner = "ariga"; 9 repo = "atlas"; 10 rev = "v${version}"; 11 - hash = "sha256-dOqL/9sJUbaHqF3N5PEL7f6LxQQWNL0FvaH5BxQp4Xg="; 12 }; 13 14 modRoot = "cmd/atlas"; 15 16 - vendorHash = "sha256-1Hhl2TzJWWXk4du9nbJTPXdYuss4TWfUIOw2DaAJQis="; 17 18 nativeBuildInputs = [ installShellFiles ]; 19 20 - env.GOWORK = "off"; 21 - 22 ldflags = [ "-s" "-w" "-X ariga.io/atlas/cmd/atlas/internal/cmdapi.version=v${version}" ]; 23 24 subPackages = [ "." ]; ··· 29 --fish <($out/bin/atlas completion fish) \ 30 --zsh <($out/bin/atlas completion zsh) 31 ''; 32 33 meta = with lib; { 34 description = "A modern tool for managing database schemas";
··· 1 + { lib, buildGoModule, fetchFromGitHub, installShellFiles, testers, atlas }: 2 3 buildGoModule rec { 4 pname = "atlas"; 5 + version = "0.15.0"; 6 7 src = fetchFromGitHub { 8 owner = "ariga"; 9 repo = "atlas"; 10 rev = "v${version}"; 11 + hash = "sha256-qEui+Y7auNFJwLSUT90jJH7IPgNW06phbJel9y3C1bk="; 12 }; 13 14 modRoot = "cmd/atlas"; 15 16 + proxyVendor = true; 17 + vendorHash = "sha256-BJB+ZwrfZsYlyVX0G3qNQW8KexxMmc1Y9m2TRbOX6Tc="; 18 19 nativeBuildInputs = [ installShellFiles ]; 20 21 ldflags = [ "-s" "-w" "-X ariga.io/atlas/cmd/atlas/internal/cmdapi.version=v${version}" ]; 22 23 subPackages = [ "." ]; ··· 28 --fish <($out/bin/atlas completion fish) \ 29 --zsh <($out/bin/atlas completion zsh) 30 ''; 31 + 32 + passthru.tests.version = testers.testVersion { 33 + package = atlas; 34 + command = "atlas version"; 35 + version = "v${version}"; 36 + }; 37 38 meta = with lib; { 39 description = "A modern tool for managing database schemas";