about summary refs log tree commit diff
path: root/nixpkgs/pkgs/servers/http/cgiserver/default.nix
blob: d30a3bbea1f3d935342f0616776db143c934fe1a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
{ lib, buildGoModule, fetchzip, zstd }:

buildGoModule rec {
  pname = "cgiserver";
  version = "1.0.0";

  src = fetchzip {
    url = "https://src.anomalous.eu/cgiserver/snapshot/cgiserver-${version}.tar.zst";
    nativeBuildInputs = [ zstd ];
    hash = "sha256-uIrOZbHzxAdUJF12MBOzRUA6mSPvOKJ/K9ZwwLVId5E=";
  };

  vendorHash = "sha256-mygMtVbNWwtIkxTGxMnuAMUU0mp49NZ50B9d436nWgI=";

  patches = [
    ./0001-Add-r-flag-to-set-CGI-SCRIPT_NAME.patch
    ./0002-Don-t-include-PII-in-logs.patch
  ];

  meta = with lib; {
    homepage = "https://src.anomalous.eu/cgiserver/about/";
    description = "Lightweight web server for sandboxing CGI applications";
    mainProgram = "cgiserver";
    maintainers = with maintainers; [ qyliss ];
    license = licenses.osl3;
  };
}