47 lines
1.0 KiB
Nix
47 lines
1.0 KiB
Nix
{
|
|
fetchFromGitHub,
|
|
lib,
|
|
nix-update-script,
|
|
openssl,
|
|
pkg-config,
|
|
rustPlatform,
|
|
versionCheckHook,
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage (finalAttrs: {
|
|
pname = "oci2git";
|
|
version = "0.3.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "Virviil";
|
|
repo = "oci2git";
|
|
tag = "v${finalAttrs.version}";
|
|
hash = "sha256-Cppc+y5AzESlnNNx4TD72/odRUU3VuiKgbND29Lb9cQ=";
|
|
};
|
|
|
|
cargoHash = "sha256-wJbMG9Jv6bB+N7Zh610v9Ty48XchWL8EZ9Ta13tvvlg=";
|
|
|
|
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;
|
|
};
|
|
})
|