nix_custom_pkg/zot/default.nix
2025-11-12 19:10:36 +01:00

26 lines
694 B
Nix

{ pkgs ? import <nixpkgs> {} }:
pkgs.stdenv.mkDerivation rec {
pname = "zot";
version = "2.1.10";
src = pkgs.fetchurl {
url = "https://github.com/project-zot/zot/releases/download/v${version}/zot-linux-amd64";
sha256 = "sha256-t+7SKehWjZTSt6vMtcxFKJRVG/AbgQjyDf/JuUPQf3A=";
};
dontUnpack = true;
installPhase = ''
mkdir -p $out/bin
cp $src $out/bin/zot
chmod +x $out/bin/zot
'';
meta = with pkgs.lib; {
description = "zot - A scale-out production-ready vendor-neutral OCI-native container image/artifact registry (purely based on OCI Distribution Specification)";
homepage = "https://zotregistry.dev";
license = licenses.asl20;
platforms = ["x86_64-linux"];
};
}