oci2git: init at 0.1.4 (#405014)

This commit is contained in:
Aleksana
2025-05-23 16:25:24 +08:00
committed by GitHub
+46
View File
@@ -0,0 +1,46 @@
{
fetchFromGitHub,
lib,
nix-update-script,
openssl,
pkg-config,
rustPlatform,
versionCheckHook,
}:
rustPlatform.buildRustPackage (finalAttrs: {
pname = "oci2git";
version = "0.1.4";
src = fetchFromGitHub {
owner = "Virviil";
repo = "oci2git";
tag = "v${finalAttrs.version}";
hash = "sha256-vz4OqRg7CYliAswQWtzEWUb7Z10fwxDhYrvQ3q4ZtPA=";
};
cargoHash = "sha256-Aj93f+L4h1FxHpWehD11sTPXTFsg2B9rJ96mSJ/VVQ4=";
nativeBuildInputs = [
pkg-config
];
buildInputs = [
openssl
];
doInstallCheck = true;
nativeInstallCheckInputs = [ versionCheckHook ];
passthru.updateScript = nix-update-script { };
meta = {
description = "Introspecting Docker images as easy as using Git";
homepage = "https://github.com/Virviil/oci2git";
changelog = "https://github.com/Virviil/oci2git/releases/tag/v${finalAttrs.version}";
license = [ lib.licenses.mit ];
maintainers = [ lib.maintainers.kpbaks ];
mainProgram = "oci2git";
platforms = lib.platforms.all;
};
})