depot/third_party/nixpkgs/pkgs/servers/caddy/xcaddy/default.nix
Default email 587713944a Project import generated by Copybara.
GitOrigin-RevId: 6143fc5eeb9c4f00163267708e26191d1e918932
2024-04-21 17:54:59 +02:00

36 lines
813 B
Nix

{ lib, buildGoModule, fetchFromGitHub }:
buildGoModule rec {
pname = "xcaddy";
version = "0.4.0";
subPackages = [ "cmd/xcaddy" ];
src = fetchFromGitHub {
owner = "caddyserver";
repo = pname;
rev = "v${version}";
hash = "sha256-wzX6+O7hN8x3DDkTdNMBuWTCY8dp1gGrF2TW1d07PEc=";
};
patches = [
./inject_version_info.diff
./use_tmpdir_on_darwin.diff
];
ldflags = [
"-s"
"-w"
"-X github.com/caddyserver/xcaddy/cmd.customVersion=v${version}"
];
vendorHash = "sha256-7yd/6h1DKw7X/1NbHtr2vbpyapF81HPmDm7O4oV5nlc=";
meta = with lib; {
homepage = "https://github.com/caddyserver/xcaddy";
description = "Build Caddy with plugins";
mainProgram = "xcaddy";
license = licenses.asl20;
maintainers = with maintainers; [ tjni emilylange ];
};
}