2023-10-09 19:29:22 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pkg-config
|
|
|
|
, cmake
|
|
|
|
, hunspell
|
|
|
|
, qtbase
|
|
|
|
, qtmultimedia
|
|
|
|
, qttools
|
|
|
|
, qt5compat
|
|
|
|
, qtwayland
|
|
|
|
, wrapQtAppsHook
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-10-09 19:29:22 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "focuswriter";
|
2024-01-25 14:12:00 +00:00
|
|
|
version = "1.8.6";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-10-09 19:29:22 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "gottcode";
|
|
|
|
repo = "focuswriter";
|
|
|
|
rev = "v${version}";
|
2024-01-25 14:12:00 +00:00
|
|
|
hash = "sha256-z3DQaMgaTjzj2Oh1QI7A5v9G7GxjlGj/7jInxH/tDaY=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2023-10-09 19:29:22 +00:00
|
|
|
nativeBuildInputs = [ pkg-config cmake qttools wrapQtAppsHook ];
|
|
|
|
buildInputs = [ hunspell qtbase qtmultimedia qt5compat qtwayland ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
installFlags = [ "INSTALL_ROOT=$(out)" ];
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Simple, distraction-free writing environment";
|
|
|
|
license = licenses.gpl3Plus;
|
2023-10-09 19:29:22 +00:00
|
|
|
maintainers = with maintainers; [ madjar kashw2 ];
|
2020-04-24 23:36:52 +00:00
|
|
|
platforms = platforms.linux;
|
|
|
|
homepage = "https://gottcode.org/focuswriter/";
|
2024-01-02 11:29:13 +00:00
|
|
|
mainProgram = "focuswriter";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|