Merge pull request #328633 from azahi/soju-081

soju: 0.8.0 -> 0.8.1
This commit is contained in:
Artturin
2024-07-22 01:29:11 +03:00
committed by GitHub
+29 -17
View File
@@ -1,42 +1,49 @@
{ lib
, buildGoModule
, fetchFromSourcehut
, installShellFiles
, scdoc
{
lib,
buildGoModule,
fetchFromGitea,
installShellFiles,
scdoc,
nixosTests,
}:
buildGoModule rec {
pname = "soju";
version = "0.8.0";
version = "0.8.1";
src = fetchFromSourcehut {
owner = "~emersion";
src = fetchFromGitea {
domain = "codeberg.org";
owner = "emersion";
repo = "soju";
rev = "v${version}";
hash = "sha256-K7Dgc1HQ6+GnjraQNcK9LOFxUIoKKWro1mWKDZFwLiE=";
hash = "sha256-Zhqmek7dvuyMb35XkAHXUaSiQZaGgGWtM09Dj84DDIM=";
};
vendorHash = "sha256-4Yl87Gk/HykjIyNpRfgthLf6b+v7kxmONIhYBWVXi0I=";
vendorHash = "sha256-t3jupiEuxWDFMfBiQ07il7lnmqG6zrV68lRNH1Gts4k=";
nativeBuildInputs = [
installShellFiles
scdoc
];
ldflags = [ "-s" "-w" ];
ldflags = [
"-s"
"-w"
"-X codeberg.org/emersion/soju/config.DefaultPath=/etc/soju/config"
"-X codeberg.org/emersion/soju/config.DefaultUnixAdminPath=/run/soju/admin"
];
postBuild = ''
make doc/soju.1 doc/sojuctl.1
'';
checkFlags = [ "-skip TestPostgresMigrations" ];
postInstall = ''
installManPage doc/soju.1 doc/sojuctl.1
'';
preCheck = ''
# Disable a test that requires an additional service.
rm database/postgres_test.go
'';
passthru.tests.soju = nixosTests.soju;
meta = with lib; {
description = "User-friendly IRC bouncer";
@@ -48,8 +55,13 @@ buildGoModule rec {
deployments.
'';
homepage = "https://soju.im";
changelog = "https://git.sr.ht/~emersion/soju/refs/${src.rev}";
changelog = "https://codeberg.org/emersion/soju/releases/tag/${src.rev}";
license = licenses.agpl3Only;
maintainers = with maintainers; [ azahi malte-v jtbx ];
maintainers = with maintainers; [
azahi
malte-v
jtbx
];
mainProgram = "sojuctl";
};
}