From 506a3ffeedf7907b8e7c4b7d9c98614878aadd58 Mon Sep 17 00:00:00 2001 From: kpbaks Date: Wed, 7 May 2025 20:30:33 +0200 Subject: [PATCH] oci2git: init at 0.1.4 Update pkgs/by-name/oc/oci2git/package.nix Co-authored-by: awwpotato --- pkgs/by-name/oc/oci2git/package.nix | 46 +++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 pkgs/by-name/oc/oci2git/package.nix diff --git a/pkgs/by-name/oc/oci2git/package.nix b/pkgs/by-name/oc/oci2git/package.nix new file mode 100644 index 000000000000..98591d2d1292 --- /dev/null +++ b/pkgs/by-name/oc/oci2git/package.nix @@ -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; + }; +})