21 # Running with TTS support causes the program to freeze for a few seconds every time at startup,
22 # so it is disabled by default
23 textToSpeechSupport ? false,
28 # For some reason qtscript wants to use the same version of qtbase as itself
29 # This override makes it think that they are the same version
30 qtscript' = qtscript.overrideAttrs (oldAttrs: {
31 inherit (qtbase) version;
33 substituteInPlace .qmake.conf \
34 --replace-fail ${oldAttrs.version} ${qtbase.version}
38 stdenv.mkDerivation (finalAttrs: {
42 src = fetchFromGitHub {
45 rev = "v${finalAttrs.version}";
46 hash = "sha256-4RKCNEniBBx0kDwdHVZOqXYeGCsH8g6SfVc8JdDV0hI=";
47 fetchSubmodules = true;
52 # Sets the proper search location for the `.so` files and the translations
55 ++ lib.optionals (!textToSpeechSupport) [
61 substituteInPlace gui/src/mainwindow.cpp executer/src/executer.cpp tools/src/languages.cpp \
83 ] ++ lib.optionals textToSpeechSupport [ qtspeech ];
85 # RPATH of binary /nix/store/.../bin/... contains a forbidden reference to /build/
86 cmakeFlags = [ (lib.cmakeBool "CMAKE_SKIP_BUILD_RPATH" true) ];
88 # udev is used by the system-actionpack
89 env.NIX_LDFLAGS = "-ludev";
94 install -Dm755 {execution,actiontools,tools}/*.so -t $out/lib
95 install -Dm755 actions/actionpack*.so -t $out/lib/actions
96 install -Dm755 actiona actexec -t $out/bin
97 install -Dm644 translations/*.qm -t $out/share/actiona/translations
98 install -Dm644 $src/actiona.desktop -t $out/share/applications
99 install -Dm644 $src/gui/icons/actiona.png -t $out/share/icons/hicolor/48x48/apps
105 description = "Cross-platform automation tool";
106 homepage = "https://github.com/Jmgr/actiona";
107 license = lib.licenses.gpl3Only;
108 mainProgram = "actiona";
109 maintainers = with lib.maintainers; [ tomasajt ];
110 platforms = lib.platforms.linux;