Files
nixpkgs/pkgs/by-name/wa/wahay/package.nix
Dark Steveneq 646b892680
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
push sheeet
2025-10-09 14:15:47 +02:00

99 lines
1.9 KiB
Nix
Raw Permalink Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
{
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";
};
})