mirror of
https://github.com/NotAShelf/nyxexprs.git
synced 2025-10-15 05:09:32 +00:00
{headscale-ui, ai-robots-txt}: track with npins
This commit is contained in:
parent
f42261e903
commit
f0e6e546d8
3 changed files with 69 additions and 34 deletions
|
@ -2,36 +2,37 @@
|
|||
lib,
|
||||
stdenvNoCC,
|
||||
fetchurl,
|
||||
}:
|
||||
stdenvNoCC.mkDerivation (finalAttrs: {
|
||||
pname = "ai-robots-txt";
|
||||
version = "1.28";
|
||||
pins,
|
||||
}: let
|
||||
pin = pins.ai-robots-txt;
|
||||
in
|
||||
stdenvNoCC.mkDerivation (finalAttrs: {
|
||||
pname = "ai-robots-txt";
|
||||
inherit (pin) version;
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://github.com/ai-robots-txt/ai.robots.txt/releases/download/v${finalAttrs.version}/robots.txt";
|
||||
hash = "sha256-Cx01MI5Rss08lLgzwoppou0nqD0HxvfUbsa1NRVp8eQ=";
|
||||
};
|
||||
src = fetchurl {
|
||||
url = "https://github.com/ai-robots-txt/ai.robots.txt/releases/download/${finalAttrs.version}/robots.txt";
|
||||
hash = "sha256-Cx01MI5Rss08lLgzwoppou0nqD0HxvfUbsa1NRVp8eQ=";
|
||||
};
|
||||
|
||||
dontUnpack = true;
|
||||
dontConfigure = true;
|
||||
dontBuild = true;
|
||||
dontUnpack = true;
|
||||
dontConfigure = true;
|
||||
dontBuild = true;
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
|
||||
mkdir -p $out/share
|
||||
mkdir -p $out/share
|
||||
cp $src $out/share/robots.txt
|
||||
|
||||
# Only copy relevant files
|
||||
cp .htaccess nginx-block-ai-bots.conf nginx-block-ai-bots.conf able-of-bot-metrics.md $out/share
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
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.mit;
|
||||
maintainers = with lib.maintainers; [NotAShelf];
|
||||
platforms = lib.platforms.all;
|
||||
};
|
||||
})
|
||||
meta = {
|
||||
description = "List of AI agents and robots to block";
|
||||
homepage = "https://github.com/ai-robots-txt/ai.robots.txt";
|
||||
license = lib.licenses.mit;
|
||||
maintainers = with lib.maintainers; [NotAShelf];
|
||||
platforms = lib.platforms.all;
|
||||
};
|
||||
})
|
||||
|
|
|
@ -1,15 +1,17 @@
|
|||
{
|
||||
lib,
|
||||
stdenvNoCC,
|
||||
fetchzip,
|
||||
lib,
|
||||
pins,
|
||||
}: let
|
||||
pname = "headscale-ui";
|
||||
version = "2025.03.21";
|
||||
pin = pins.headscale-ui;
|
||||
in
|
||||
stdenvNoCC.mkDerivation {
|
||||
inherit pname version;
|
||||
stdenvNoCC.mkDerivation (finalAttrs: {
|
||||
pname = "headscale-ui";
|
||||
inherit (pin) version;
|
||||
|
||||
src = fetchzip {
|
||||
url = "https://github.com/gurucomputing/headscale-ui/releases/download/${version}/headscale-ui.zip";
|
||||
url = "https://github.com/gurucomputing/headscale-ui/releases/download/${finalAttrs.version}/headscale-ui.zip";
|
||||
sha256 = "sha256-Autk8D9G1Ott2ahbgJ7mGZKDChsSDgfrOhnurNiIdsQ=";
|
||||
};
|
||||
|
||||
|
@ -29,4 +31,4 @@ in
|
|||
license = [lib.licenses.bsd3];
|
||||
maintainers = with lib.maintainers; [NotAShelf];
|
||||
};
|
||||
}
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue