datalad: fix changed hash from upstream (#364015)
[NixPkgs.git] / pkgs / by-name / xc / xcaddy / package.nix
blob907ac80b0d0e351a861480a5040d57cb877c5ecf
2   lib,
3   buildGoModule,
4   fetchFromGitHub,
5 }:
7 buildGoModule rec {
8   pname = "xcaddy";
9   version = "0.4.4";
11   subPackages = [ "cmd/xcaddy" ];
13   src = fetchFromGitHub {
14     owner = "caddyserver";
15     repo = pname;
16     rev = "v${version}";
17     hash = "sha256-vpaweUU++3ZHj7KT5WNUCw3X93sQBTgjKlB8rJwrHlM=";
18   };
20   patches = [
21     ./inject_version_info.diff
22     ./use_tmpdir_on_darwin.diff
23   ];
25   ldflags = [
26     "-s"
27     "-w"
28     "-X github.com/caddyserver/xcaddy/cmd.customVersion=v${version}"
29   ];
31   vendorHash = "sha256-vU/ptOzBjMpRG2Do6ODC+blcCNl15D9mSsEV8QgNN3Y=";
33   meta = with lib; {
34     homepage = "https://github.com/caddyserver/xcaddy";
35     description = "Build Caddy with plugins";
36     mainProgram = "xcaddy";
37     license = licenses.asl20;
38     maintainers = with maintainers; [
39       tjni
40       emilylange
41     ];
42   };