blob: 1e3f19604b33ceb0b7b182202cb3866a969c6e26 (
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
{
lib,
buildGo127Module,
fetchFromGitHub,
gitUpdater,
versionCheckHook,
}:
# Temporary until buildGoModule updates to 1.27
buildGo127Module (finalAttrs: {
pname = "gopodder";
version = "1.2.5";
__structuredAttrs = true;
src = fetchFromGitHub {
owner = "cbrgm";
repo = "gopodder";
tag = "v${finalAttrs.version}";
hash = "sha256-oKaAiVFQqVB7ArqrUqWg8nWkygtqDjRotfyBDe0q4pY=";
};
vendorHash = "sha256-MHgh84kzztPLETf3O24lNcfVuOKntKYidczqG8qEyzE=";
dontPatchELF = true;
ldflags = [
"-X main.Version=${finalAttrs.version}"
"-X main.Revision=${finalAttrs.src.tag}"
"-X main.BuildDate=1970-01-01"
];
env.CGO_ENABLED = 0;
nativeInstallCheckInputs = [
versionCheckHook
];
doInstallCheck = true;
__darwinAllowLocalNetworking = true;
passthru.updateScript = gitUpdater {
rev-prefix = "v";
};
meta = {
description = "Self-hostable podcast synchronization server compatible with the gPodder API";
homepage = "https://github.com/cbrgm/gopodder";
changelog = "https://github.com/cbrgm/gopodder/releases/tag/${finalAttrs.src.tag}";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ nielmin ];
mainProgram = "gopodder";
};
})
|