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
52 lines
1.0 KiB
Nix
52 lines
1.0 KiB
Nix
{
|
|
lib,
|
|
fetchFromGitHub,
|
|
stdenv,
|
|
pkg-config,
|
|
libstrophe,
|
|
installShellFiles,
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "xmpp-bridge";
|
|
version = "0.6.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "majewsky";
|
|
repo = "xmpp-bridge";
|
|
rev = "v${version}";
|
|
hash = "sha256-JXhVi2AiV/PmWPfoQJl/N92GAZQ9UxReAiCkiDxgdFY=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
installShellFiles
|
|
pkg-config
|
|
];
|
|
|
|
buildInputs = [
|
|
libstrophe
|
|
];
|
|
|
|
strictDeps = true;
|
|
|
|
# Makefile is hardcoded to install to /usr, install manually
|
|
installPhase = ''
|
|
runHook preInstall
|
|
|
|
install -D -m 0755 build/xmpp-bridge "$out/bin/xmpp-bridge"
|
|
installManPage xmpp-bridge.1
|
|
|
|
runHook postInstall
|
|
'';
|
|
|
|
meta = {
|
|
description = "Connect command-line programs to XMPP";
|
|
homepage = "https://github.com/majewsky/xmpp-bridge";
|
|
license = lib.licenses.gpl3Plus;
|
|
mainProgram = "xmpp-bridge";
|
|
maintainers = with lib.maintainers; [ gigahawk ];
|
|
platforms = lib.platforms.unix;
|
|
broken = stdenv.hostPlatform.isDarwin;
|
|
};
|
|
}
|