summary refs log tree commit diff
path: root/fleet/pkgs/cgiserver/default.nix
blob: 9e911d530230506bf827582b558909f0655f0f77 (plain)
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
# SPDX-FileCopyrightText: V <v@unfathomable.blue>
# SPDX-License-Identifier: OSL-3.0

{ 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";
    sha256 = "14bp92sw0w6n5dzs4f7g4fcklh25nc9k0xjx4ia0gi7kn5jwx2mq";
  }).overrideAttrs ({ nativeBuildInputs, ... }: {
    nativeBuildInputs = nativeBuildInputs ++ [ zstd ];
  });

  vendorSha256 = "00jslxzf6p8zs1wxdx3qdb919i80xv4w9ihljd40nnydasshqa4v";

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