Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
99 lines
1.9 KiB
Nix
99 lines
1.9 KiB
Nix
{
|
||
lib,
|
||
stdenv,
|
||
buildGoModule,
|
||
fetchFromGitHub,
|
||
gnumake,
|
||
pkg-config,
|
||
gtk3,
|
||
rubyPackages,
|
||
tor,
|
||
mumble,
|
||
installShellFiles,
|
||
wrapGAppsHook3,
|
||
writableTmpDirAsHomeHook,
|
||
nix-update-script,
|
||
}:
|
||
|
||
buildGoModule (finalAttrs: {
|
||
pname = "wahay";
|
||
version = "0.2";
|
||
|
||
src = fetchFromGitHub {
|
||
owner = "digitalautonomy";
|
||
repo = "wahay";
|
||
tag = "v${finalAttrs.version}";
|
||
hash = "sha256-59gVGDElIs+OQ/ELwOFjz6YqG18iHqoa2yYF2Ddi0/o=";
|
||
};
|
||
|
||
vendorHash = "sha256-w8lUnvy5dPMHWbzyyTq9Q/kE/4vSuOHffaY9CeasvQ0=";
|
||
|
||
buildInputs = [
|
||
gtk3
|
||
];
|
||
|
||
nativeBuildInputs = [
|
||
gnumake
|
||
pkg-config
|
||
rubyPackages.sass
|
||
installShellFiles
|
||
wrapGAppsHook3
|
||
];
|
||
|
||
nativeCheckInputs = [
|
||
writableTmpDirAsHomeHook
|
||
];
|
||
|
||
postPatch = ''
|
||
# Avoid Git invocation: Remove assignments starting with ‘$(shell git’
|
||
sed -E -i \
|
||
-e '/^\w+\s*[+:]?=\s*\$\(shell\s+git\>/d' \
|
||
Makefile
|
||
'';
|
||
|
||
buildPhase = ''
|
||
runHook preBuild
|
||
make TAG_VERSION=v${finalAttrs.version} \
|
||
BUILD_TIMESTAMP="$(date -u -d "@$SOURCE_DATE_EPOCH" '+%Y-%m-%d %H:%M:%S')" \
|
||
build
|
||
runHook postBuild
|
||
'';
|
||
|
||
checkPhase = ''
|
||
runHook preCheck
|
||
make test
|
||
runHook postCheck
|
||
'';
|
||
|
||
installPhase = ''
|
||
runHook preInstall
|
||
installBin bin/wahay
|
||
installManPage packaging/ubuntu/ubuntu/usr/share/man/man1/wahay.1.gz
|
||
runHook postInstall
|
||
'';
|
||
|
||
preFixup = ''
|
||
gappsWrapperArgs+=(
|
||
--prefix PATH : ${
|
||
lib.escapeShellArg (
|
||
lib.makeBinPath [
|
||
tor
|
||
mumble
|
||
]
|
||
)
|
||
}
|
||
)
|
||
'';
|
||
|
||
passthru.updateScript = nix-update-script { };
|
||
|
||
meta = {
|
||
broken = stdenv.hostPlatform.isDarwin;
|
||
description = "Decentralized encrypted conference call application";
|
||
homepage = "https://wahay.org/";
|
||
license = lib.licenses.gpl3Plus;
|
||
maintainers = with lib.maintainers; [ dvn0 ];
|
||
mainProgram = "wahay";
|
||
};
|
||
})
|