From 19da8cfaf521642598323f16bb572d1474562dde Mon Sep 17 00:00:00 2001 From: NotAShelf Date: Thu, 13 Feb 2025 19:09:57 +0300 Subject: [PATCH] robots-ai-txt: init at 1.25 --- pkgs/robots-ai-txt/package.nix | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 pkgs/robots-ai-txt/package.nix diff --git a/pkgs/robots-ai-txt/package.nix b/pkgs/robots-ai-txt/package.nix new file mode 100644 index 0000000..f4c66e0 --- /dev/null +++ b/pkgs/robots-ai-txt/package.nix @@ -0,0 +1,33 @@ +{ + lib, + stdenvNoCC, + fetchurl, +}: +stdenvNoCC.mkDerivation (finalAttrs: { + pname = "ai-robots-txt"; + version = "1.25"; + + src = fetchurl { + url = "https://github.com/ai-robots-txt/ai.robots.txt/releases/download/v${finalAttrs.version}/robots.txt"; + hash = "sha256-r4C+RDNpzfokBkvTG1v1D9gbu5zpC91+onQFYw05lZE="; + }; + + dontUnpack = true; + dontConfigure = true; + dontBuild = true; + + installPhase = '' + runHook preInstall + cp $src $out + + runHook postInstall + ''; + + meta = { + description = "List of AI agents and robots to block"; + homepage = "https://github.com/ai-robots-txt/ai.robots.txt"; + license = lib.licenses.bsd3; + maintainers = with lib.maintainers; [NotAShelf]; + platforms = lib.platforms.all; + }; +})