Skip to content

Instantly share code, notes, and snippets.

@Denperidge
Last active March 3, 2024 22:21
Show Gist options
  • Save Denperidge/b5382854450518268282e184edff9d26 to your computer and use it in GitHub Desktop.
Save Denperidge/b5382854450518268282e184edff9d26 to your computer and use it in GitHub Desktop.
Attempt at a Caddy package with an addon!
{ lib, stdenv, fetchurl, autoPatchelfHook }:
stdenv.mkDerivation rec {
pname = "caddy-plugin";
version = "0.1.0";
src = fetchurl {
url = "https://caddyserver.com/api/download?os=linux&arch=arm64&p=github.com%2Fcaddy-dns%2Fporkbun";
};
nativeBuildInputs = [
autoPatchelfHook
];
buildInputs = [
];
sourceRoot = ".";
installPhase = ''
runHook preInstall
install -m755 -D caddy_linux_arm64_custom $out/bin/caddy
runHook postInstall
'';
meta = with lib; {
homepage = "https://caddyserver.com";
description = "Caddy Webserver with plugins!";
platforms = platforms.linux;
};
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment