Loading pkgs/by-name/wa/wahay/package.nix 0 → 100644 +98 −0 Original line number Diff line number Diff line { 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"; }; }) Loading
pkgs/by-name/wa/wahay/package.nix 0 → 100644 +98 −0 Original line number Diff line number Diff line { 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"; }; })