mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-10-04 05:50:00 +00:00
54 lines
1.2 KiB
Nix
54 lines
1.2 KiB
Nix
{
|
|
lib,
|
|
buildGo127Module,
|
|
fetchFromGitHub,
|
|
gitUpdater,
|
|
versionCheckHook,
|
|
}:
|
|
# Temporary until buildGoModule updates to 1.27
|
|
buildGo127Module (finalAttrs: {
|
|
pname = "gopodder";
|
|
version = "1.3.0";
|
|
__structuredAttrs = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "cbrgm";
|
|
repo = "gopodder";
|
|
tag = "v${finalAttrs.version}";
|
|
hash = "sha256-v9ST59H2g3pYT9xA+q8Z+2p5ROX+T1BArihfaRxMLL0=";
|
|
};
|
|
|
|
vendorHash = "sha256-I/T/+UJpDiPqH8yd1J61NYcrybRQC4E2M6yLio0ficU=";
|
|
|
|
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";
|
|
};
|
|
})
|