commit 72ea1a39c6a65d293b45f04e27bee48e7c79ad64 Author: Tim Teichmann Date: Wed Nov 12 19:10:36 2025 +0100 initial diff --git a/config.json b/config.json new file mode 100644 index 0000000..bc8e01e --- /dev/null +++ b/config.json @@ -0,0 +1,21 @@ +{ + "distSpecVersion": "1.0.1", + "storage": { + "rootDirectory": "/tmp/zot" + }, + "http": { + "address": "127.0.0.1", + "port": "8080" + }, + "log": { + "level": "debug" + }, + "extensions": { + "search": { + "enable": true + }, + "ui": { + "enable": true + } + } +} diff --git a/default.nix b/default.nix new file mode 100644 index 0000000..621884f --- /dev/null +++ b/default.nix @@ -0,0 +1,12 @@ +{ pkgs ? import {} }: +let + zot = import ./zot/default.nix { }; +in +pkgs.mkShell { + packages = [ + zot + ]; + shellHook = '' + echo "test" + ''; +} diff --git a/zot/default.nix b/zot/default.nix new file mode 100644 index 0000000..d6a6e7e --- /dev/null +++ b/zot/default.nix @@ -0,0 +1,25 @@ +{ pkgs ? import {} }: +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"]; + }; +}