tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
gh-ost: use finalAttrs
Aaron Jheng
8 months ago
575a550b
710864bb
+5
-6
1 changed file
expand all
collapse all
unified
split
pkgs
by-name
gh
gh-ost
package.nix
+5
-6
pkgs/by-name/gh/gh-ost/package.nix
···
3
buildGoModule,
4
fetchFromGitHub,
5
testers,
6
-
gh-ost,
7
}:
8
9
-
buildGoModule rec {
10
pname = "gh-ost";
11
version = "1.1.7";
12
13
src = fetchFromGitHub {
14
owner = "github";
15
repo = "gh-ost";
16
-
rev = "v${version}";
17
hash = "sha256-TTc69dWasqMVwwJNo+M9seMKEWgerZ2ZR7dwDfM1gWI=";
18
};
19
···
22
ldflags = [
23
"-s"
24
"-w"
25
-
"-X main.AppVersion=${version}"
26
];
27
28
checkFlags =
···
37
[ "-skip=^${builtins.concatStringsSep "$|^" skippedTests}$" ];
38
39
passthru.tests.version = testers.testVersion {
40
-
package = gh-ost;
41
};
42
43
meta = {
···
47
maintainers = with lib.maintainers; [ aaronjheng ];
48
mainProgram = "gh-ost";
49
};
50
-
}
···
3
buildGoModule,
4
fetchFromGitHub,
5
testers,
0
6
}:
7
8
+
buildGoModule (finalAttrs: {
9
pname = "gh-ost";
10
version = "1.1.7";
11
12
src = fetchFromGitHub {
13
owner = "github";
14
repo = "gh-ost";
15
+
tag = "v${finalAttrs.version}";
16
hash = "sha256-TTc69dWasqMVwwJNo+M9seMKEWgerZ2ZR7dwDfM1gWI=";
17
};
18
···
21
ldflags = [
22
"-s"
23
"-w"
24
+
"-X main.AppVersion=${finalAttrs.version}"
25
];
26
27
checkFlags =
···
36
[ "-skip=^${builtins.concatStringsSep "$|^" skippedTests}$" ];
37
38
passthru.tests.version = testers.testVersion {
39
+
package = finalAttrs.finalPackage;
40
};
41
42
meta = {
···
46
maintainers = with lib.maintainers; [ aaronjheng ];
47
mainProgram = "gh-ost";
48
};
49
+
})