anvil-editor: init at 0.4
[NixPkgs.git] / pkgs / applications / editors / focuswriter / default.nix
blob5126c7c6725e51b3bc6a2af0fd008bc8b96e4853
1 { lib
2 , stdenv
3 , fetchFromGitHub
4 , pkg-config
5 , cmake
6 , hunspell
7 , qtbase
8 , qtmultimedia
9 , qttools
10 , qt5compat
11 , qtwayland
12 , wrapQtAppsHook
15 stdenv.mkDerivation rec {
16   pname = "focuswriter";
17   version = "1.8.9";
19   src = fetchFromGitHub {
20     owner = "gottcode";
21     repo = "focuswriter";
22     rev = "v${version}";
23     hash = "sha256-FFfNjjVwi0bE6oc8LYhXrCKd+nwRQrjWzK5P4DSIIgs=";
24   };
26   nativeBuildInputs = [ pkg-config cmake qttools wrapQtAppsHook ];
27   buildInputs = [ hunspell qtbase qtmultimedia qt5compat qtwayland ];
29   installFlags = [ "INSTALL_ROOT=$(out)" ];
31   meta = with lib; {
32     description = "Simple, distraction-free writing environment";
33     license = licenses.gpl3Plus;
34     maintainers = with maintainers; [ madjar kashw2 ];
35     platforms = platforms.linux;
36     homepage = "https://gottcode.org/focuswriter/";
37     mainProgram = "focuswriter";
38   };