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
3
buildGoModule,
4
4
fetchFromGitHub,
5
5
testers,
6
6
-
gh-ost,
7
6
}:
8
7
9
9
-
buildGoModule rec {
8
8
+
buildGoModule (finalAttrs: {
10
9
pname = "gh-ost";
11
10
version = "1.1.7";
12
11
13
12
src = fetchFromGitHub {
14
13
owner = "github";
15
14
repo = "gh-ost";
16
16
-
rev = "v${version}";
15
15
+
tag = "v${finalAttrs.version}";
17
16
hash = "sha256-TTc69dWasqMVwwJNo+M9seMKEWgerZ2ZR7dwDfM1gWI=";
18
17
};
19
18
···
22
21
ldflags = [
23
22
"-s"
24
23
"-w"
25
25
-
"-X main.AppVersion=${version}"
24
24
+
"-X main.AppVersion=${finalAttrs.version}"
26
25
];
27
26
28
27
checkFlags =
···
37
36
[ "-skip=^${builtins.concatStringsSep "$|^" skippedTests}$" ];
38
37
39
38
passthru.tests.version = testers.testVersion {
40
40
-
package = gh-ost;
39
39
+
package = finalAttrs.finalPackage;
41
40
};
42
41
43
42
meta = {
···
47
46
maintainers = with lib.maintainers; [ aaronjheng ];
48
47
mainProgram = "gh-ost";
49
48
};
50
50
-
}
49
49
+
})