zaphyra's git: tgcNUR

fork of https://git.transgirl.cafe/zaphoid/tgc-nix-user-repository

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 
28 
29 
30 
31 
32 
33 
34 
35 
36 
37 
38 
39 
40 
41 
42 
43 
44 
45 
46 
{
  buildGoModule,
  fetchFromGitea,
  installShellFiles,
  lib,
  ...
}:

buildGoModule {
  pname = "deppa";
  version = "1.2";

  src = fetchFromGitea {
    domain = "git.linfan.moe";
    owner = "chiyokolinux";
    repo = "deppa";
    rev = "56827d62a6c5734b4aa16d4d4871a8ccc6172b54";
    hash = "sha256-inpFeQR2cZTIZidGPn2sZptvWnZAIrT3/Z1jZZAgMHE=";
  };

  nativeBuildInputs = [
    installShellFiles
  ];

  prePatch = ''
    cat <<EOF > go.mod
    module linfan.moe/deppa
    go 1.24.0
    EOF
  '';

  postInstall = ''
    installManPage deppa.8
  '';

  env.CGO_ENABLED = 0;

  vendorHash = null;

  meta = {
    description = "Server implementation of the internet gopher protocol";
    homepage = "https://git.linfan.moe/chiyokolinux/deppa";
    license = lib.licenses.agpl3Plus;
    platforms = lib.platforms.linux;
  };
}