soju: 0.8.0 -> 0.8.1
This commit is contained in:
parent
f1550ab08e
commit
f9dbb6c227
@ -1,42 +1,48 @@
|
||||
{ lib
|
||||
, buildGoModule
|
||||
, fetchFromSourcehut
|
||||
, 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 +54,9 @@ 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 ];
|
||||
mainProgram = "sojuctl";
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user