atlas: 0.14.1 -> 0.15.0

This commit is contained in:
Aaron Jheng 2023-11-14 08:01:15 +00:00
parent 5d6c732222
commit e841a9d9f6
No known key found for this signature in database
GPG key ID: F6A547A869D050A3

View file

@ -1,24 +1,23 @@
{ lib, buildGoModule, fetchFromGitHub, installShellFiles }:
{ lib, buildGoModule, fetchFromGitHub, installShellFiles, testers, atlas }:
buildGoModule rec {
pname = "atlas";
version = "0.14.1";
version = "0.15.0";
src = fetchFromGitHub {
owner = "ariga";
repo = "atlas";
rev = "v${version}";
hash = "sha256-dOqL/9sJUbaHqF3N5PEL7f6LxQQWNL0FvaH5BxQp4Xg=";
hash = "sha256-qEui+Y7auNFJwLSUT90jJH7IPgNW06phbJel9y3C1bk=";
};
modRoot = "cmd/atlas";
vendorHash = "sha256-1Hhl2TzJWWXk4du9nbJTPXdYuss4TWfUIOw2DaAJQis=";
proxyVendor = true;
vendorHash = "sha256-BJB+ZwrfZsYlyVX0G3qNQW8KexxMmc1Y9m2TRbOX6Tc=";
nativeBuildInputs = [ installShellFiles ];
env.GOWORK = "off";
ldflags = [ "-s" "-w" "-X ariga.io/atlas/cmd/atlas/internal/cmdapi.version=v${version}" ];
subPackages = [ "." ];
@ -30,6 +29,12 @@ buildGoModule rec {
--zsh <($out/bin/atlas completion zsh)
'';
passthru.tests.version = testers.testVersion {
package = atlas;
command = "atlas version";
version = "v${version}";
};
meta = with lib; {
description = "A modern tool for managing database schemas";
homepage = "https://atlasgo.io/";