mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-28 00:24:18 +00:00
9d9d06dd7b
https://github.com/caddyserver/xcaddy/releases/tag/v0.3.5 https://github.com/caddyserver/xcaddy/compare/v0.3.4...v0.3.5
36 lines
785 B
Nix
36 lines
785 B
Nix
{ lib, buildGoModule, fetchFromGitHub }:
|
|
|
|
buildGoModule rec {
|
|
pname = "xcaddy";
|
|
version = "0.3.5";
|
|
|
|
subPackages = [ "cmd/xcaddy" ];
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "caddyserver";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
hash = "sha256-XxklyOaKFPyWFabodNCcV1NnaPWS0AQ2Sj89ZZ5hJbk=";
|
|
};
|
|
|
|
patches = [
|
|
./inject_version_info.diff
|
|
./use_tmpdir_on_darwin.diff
|
|
];
|
|
|
|
ldflags = [
|
|
"-s"
|
|
"-w"
|
|
"-X github.com/caddyserver/xcaddy/cmd.customVersion=v${version}"
|
|
];
|
|
|
|
vendorHash = "sha256-RpbnoXyTrqGOI7DpgkO+J47P17T4QCVvM1CfS6kRO9Y=";
|
|
|
|
meta = with lib; {
|
|
homepage = "https://github.com/caddyserver/xcaddy";
|
|
description = "Build Caddy with plugins";
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ tjni emilylange ];
|
|
};
|
|
}
|