Last active
March 3, 2024 22:21
-
-
Save Denperidge/b5382854450518268282e184edff9d26 to your computer and use it in GitHub Desktop.
Attempt at a Caddy package with an addon!
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ 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