tangled
alpha
login
or
join now
tjh.dev
/
nixpkgs
Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
0
fork
atom
overview
issues
pulls
pipelines
atlas: 0.14.1 -> 0.15.0
Aaron Jheng
2 years ago
e841a9d9
5d6c7322
+11
-6
1 changed file
expand all
collapse all
unified
split
pkgs
development
tools
database
atlas
default.nix
+11
-6
pkgs/development/tools/database/atlas/default.nix
···
1
1
-
{ lib, buildGoModule, fetchFromGitHub, installShellFiles }:
1
1
+
{ lib, buildGoModule, fetchFromGitHub, installShellFiles, testers, atlas }:
2
2
3
3
buildGoModule rec {
4
4
pname = "atlas";
5
5
-
version = "0.14.1";
5
5
+
version = "0.15.0";
6
6
7
7
src = fetchFromGitHub {
8
8
owner = "ariga";
9
9
repo = "atlas";
10
10
rev = "v${version}";
11
11
-
hash = "sha256-dOqL/9sJUbaHqF3N5PEL7f6LxQQWNL0FvaH5BxQp4Xg=";
11
11
+
hash = "sha256-qEui+Y7auNFJwLSUT90jJH7IPgNW06phbJel9y3C1bk=";
12
12
};
13
13
14
14
modRoot = "cmd/atlas";
15
15
16
16
-
vendorHash = "sha256-1Hhl2TzJWWXk4du9nbJTPXdYuss4TWfUIOw2DaAJQis=";
16
16
+
proxyVendor = true;
17
17
+
vendorHash = "sha256-BJB+ZwrfZsYlyVX0G3qNQW8KexxMmc1Y9m2TRbOX6Tc=";
17
18
18
19
nativeBuildInputs = [ installShellFiles ];
19
20
20
20
-
env.GOWORK = "off";
21
21
-
22
21
ldflags = [ "-s" "-w" "-X ariga.io/atlas/cmd/atlas/internal/cmdapi.version=v${version}" ];
23
22
24
23
subPackages = [ "." ];
···
29
28
--fish <($out/bin/atlas completion fish) \
30
29
--zsh <($out/bin/atlas completion zsh)
31
30
'';
31
31
+
32
32
+
passthru.tests.version = testers.testVersion {
33
33
+
package = atlas;
34
34
+
command = "atlas version";
35
35
+
version = "v${version}";
36
36
+
};
32
37
33
38
meta = with lib; {
34
39
description = "A modern tool for managing database schemas";