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
64 lines
1.2 KiB
Nix
64 lines
1.2 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
|
|
cmake,
|
|
pkg-config,
|
|
|
|
bluez,
|
|
libnotify,
|
|
opencv,
|
|
qt6,
|
|
|
|
# Running with TTS support causes the program to freeze for a few seconds every time at startup,
|
|
# so it is disabled by default
|
|
textToSpeechSupport ? false,
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "actiona";
|
|
version = "3.11.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "Jmgr";
|
|
repo = "actiona";
|
|
tag = "v${finalAttrs.version}";
|
|
hash = "sha256-sJlzrrpmo2CbzChCtiyxqDtjoN58BN4Ptjm4sH83zAw=";
|
|
fetchSubmodules = true;
|
|
};
|
|
|
|
patches = lib.optionals (!textToSpeechSupport) [
|
|
# Removes TTS support
|
|
./disable-tts.patch
|
|
];
|
|
|
|
strictDeps = true;
|
|
|
|
nativeBuildInputs = [
|
|
cmake
|
|
pkg-config
|
|
qt6.wrapQtAppsHook
|
|
];
|
|
|
|
buildInputs = [
|
|
bluez
|
|
libnotify
|
|
opencv
|
|
qt6.qtbase
|
|
qt6.qtmultimedia
|
|
qt6.qttools
|
|
qt6.qt5compat
|
|
]
|
|
++ lib.optionals textToSpeechSupport [ qt6.qtspeech ];
|
|
|
|
meta = {
|
|
description = "Cross-platform automation tool";
|
|
homepage = "https://github.com/Jmgr/actiona";
|
|
license = lib.licenses.gpl3Only;
|
|
mainProgram = "actiona";
|
|
maintainers = with lib.maintainers; [ tomasajt ];
|
|
platforms = lib.platforms.linux;
|
|
};
|
|
})
|