2022-09-19 08:48:41 +02:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub }:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "xcaddy";
|
2023-08-08 19:15:12 +02:00
|
|
|
version = "0.3.5";
|
2022-09-19 08:48:41 +02:00
|
|
|
|
|
|
|
subPackages = [ "cmd/xcaddy" ];
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "caddyserver";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2023-08-08 19:15:12 +02:00
|
|
|
hash = "sha256-XxklyOaKFPyWFabodNCcV1NnaPWS0AQ2Sj89ZZ5hJbk=";
|
2022-09-19 08:48:41 +02:00
|
|
|
};
|
|
|
|
|
2022-09-19 09:06:14 +02:00
|
|
|
patches = [
|
2023-02-07 15:58:25 +01:00
|
|
|
./inject_version_info.diff
|
2022-09-19 09:06:14 +02:00
|
|
|
./use_tmpdir_on_darwin.diff
|
|
|
|
];
|
|
|
|
|
2023-02-07 15:58:25 +01:00
|
|
|
ldflags = [
|
|
|
|
"-s"
|
|
|
|
"-w"
|
|
|
|
"-X github.com/caddyserver/xcaddy/cmd.customVersion=v${version}"
|
|
|
|
];
|
|
|
|
|
2022-09-19 08:48:41 +02:00
|
|
|
vendorHash = "sha256-RpbnoXyTrqGOI7DpgkO+J47P17T4QCVvM1CfS6kRO9Y=";
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://github.com/caddyserver/xcaddy";
|
|
|
|
description = "Build Caddy with plugins";
|
|
|
|
license = licenses.asl20;
|
2023-05-21 16:00:44 +02:00
|
|
|
maintainers = with maintainers; [ tjni emilylange ];
|
2022-09-19 08:48:41 +02:00
|
|
|
};
|
|
|
|
}
|