Skip to content

Commit 16eec5d

Browse files
authored
oci2git: init at 0.1.4 (#405014)
2 parents d152c8c + 506a3ff commit 16eec5d

File tree

1 file changed

+46
-0
lines changed

1 file changed

+46
-0
lines changed
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
{
2+
fetchFromGitHub,
3+
lib,
4+
nix-update-script,
5+
openssl,
6+
pkg-config,
7+
rustPlatform,
8+
versionCheckHook,
9+
}:
10+
11+
rustPlatform.buildRustPackage (finalAttrs: {
12+
pname = "oci2git";
13+
version = "0.1.4";
14+
15+
src = fetchFromGitHub {
16+
owner = "Virviil";
17+
repo = "oci2git";
18+
tag = "v${finalAttrs.version}";
19+
hash = "sha256-vz4OqRg7CYliAswQWtzEWUb7Z10fwxDhYrvQ3q4ZtPA=";
20+
};
21+
22+
cargoHash = "sha256-Aj93f+L4h1FxHpWehD11sTPXTFsg2B9rJ96mSJ/VVQ4=";
23+
24+
nativeBuildInputs = [
25+
pkg-config
26+
];
27+
28+
buildInputs = [
29+
openssl
30+
];
31+
32+
doInstallCheck = true;
33+
nativeInstallCheckInputs = [ versionCheckHook ];
34+
35+
passthru.updateScript = nix-update-script { };
36+
37+
meta = {
38+
description = "Introspecting Docker images as easy as using Git";
39+
homepage = "https://github.com/Virviil/oci2git";
40+
changelog = "https://github.com/Virviil/oci2git/releases/tag/v${finalAttrs.version}";
41+
license = [ lib.licenses.mit ];
42+
maintainers = [ lib.maintainers.kpbaks ];
43+
mainProgram = "oci2git";
44+
platforms = lib.platforms.all;
45+
};
46+
})

0 commit comments

Comments
 (0)