tangled
alpha
login
or
join now
tjh.dev
/
nixpkgs
0
fork
atom
nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
0
fork
atom
overview
issues
pulls
pipelines
ratchet: 0.10.0 -> 0.10.2
emaryn
1 year ago
9a91f6bc
e26cdb64
+13
-11
1 changed file
expand all
collapse all
unified
split
pkgs
by-name
ra
ratchet
package.nix
+13
-11
pkgs/by-name/ra/ratchet/package.nix
reviewed
···
4
4
fetchFromGitHub,
5
5
callPackage,
6
6
}:
7
7
+
7
8
buildGoModule rec {
8
9
pname = "ratchet";
9
9
-
version = "0.10.0";
10
10
+
version = "0.10.2";
10
11
11
12
# ratchet uses the git sha-1 in the version string, e.g.
12
13
#
···
20
19
src = fetchFromGitHub {
21
20
owner = "sethvargo";
22
21
repo = "ratchet";
23
23
-
rev = "ebb7f24e0cbc288ab913b635480412934a2a5371";
24
24
-
hash = "sha256-Wt1/ahKQ8DOquXU5u6p+an9FJ5kYRl7F2EXOv/2rHlA=";
22
22
+
rev = "ee93c849418d0b9316703bb349055a4078ad205e";
23
23
+
hash = "sha256-pVpZB8WWGgFbu0iK6gM2lEaXN4IqDJ1lMtVnUfcE4MQ=";
25
24
};
26
25
27
26
proxyVendor = true;
28
28
-
vendorHash = "sha256-J7LijbhpKDIfTcQMgk2x5FVaYG7Kgkba/1aSTmgs5yw=";
27
27
+
28
28
+
vendorHash = "sha256-KKHlegmvpmmUZGoiEawgSUwOPQEfTjfzTYvere1YAv4=";
29
29
30
30
subPackages = [ "." ];
31
31
···
43
41
];
44
42
45
43
doInstallCheck = true;
44
44
+
46
45
installCheckPhase = ''
47
46
$out/bin/ratchet --version 2>&1 | grep ${version};
48
47
'';
49
48
50
49
installPhase = ''
51
50
runHook preInstall
52
52
-
mkdir -p $out/bin
51
51
+
53
52
install -Dm755 "$GOPATH/bin/ratchet" -T $out/bin/ratchet
53
53
+
54
54
runHook postInstall
55
55
'';
56
56
57
57
-
passthru.tests = {
58
58
-
execution = callPackage ./tests.nix { };
59
59
-
};
57
57
+
passthru.tests.execution = callPackage ./tests.nix { };
60
58
61
61
-
meta = with lib; {
59
59
+
meta = {
62
60
description = "Tool for securing CI/CD workflows with version pinning";
63
61
mainProgram = "ratchet";
64
62
downloadPage = "https://github.com/sethvargo/ratchet";
65
63
homepage = "https://github.com/sethvargo/ratchet";
66
66
-
license = licenses.asl20;
67
67
-
maintainers = with maintainers; [
64
64
+
license = lib.licenses.asl20;
65
65
+
maintainers = with lib.maintainers; [
68
66
cameronraysmith
69
67
ryanccn
70
68
];