12 python3.pkgs.buildPythonApplication {
13 pname = "novelwriter";
17 src = fetchFromGitHub {
21 hash = "sha256-xRSq6lBZ6jHtNve027uF2uNs3/40s0YdFN9F9O7m5VU=";
24 nativeBuildInputs = [ qt5.wrapQtAppsHook ];
26 build-system = with python3.pkgs; [ setuptools ];
28 dependencies = with python3.pkgs; [
36 export QT_QPA_PLATFORM_PLUGIN_PATH=${qt5.qtbase.bin}/lib/qt-${qt5.qtbase.version}/plugins/platforms
39 postInstall = lib.optionalString stdenv.hostPlatform.isLinux ''
40 mkdir -p $out/share/{icons,applications,pixmaps,mime/packages}
42 cp -r setup/data/hicolor $out/share/icons
43 cp setup/data/novelwriter.desktop $out/share/applications
44 cp setup/data/novelwriter.png $out/share/pixmaps
45 cp setup/data/x-novelwriter-project.xml $out/share/mime/packages
48 dontWrapQtApps = true;
51 wrapQtApp $out/bin/novelwriter
54 passthru.updateScript = nix-update-script {
55 # Stable releases only
63 description = "Open source plain text editor designed for writing novels";
64 homepage = "https://novelwriter.io";
65 changelog = "https://github.com/vkbo/novelWriter/blob/main/CHANGELOG.md";
66 license = with lib.licenses; [ gpl3 ];
67 maintainers = with lib.maintainers; [ pluiedev ];
68 mainProgram = "novelwriter";
70 platforms = with lib.platforms; unix ++ windows;
71 broken = stdenv.hostPlatform.isDarwin; # TODO awaiting build instructions for Darwin