lol
1{ lib, zlib, fetchFromGitHub, python3Packages, wrapQtAppsHook }:
2
3python3Packages.buildPythonApplication rec {
4 pname = "manuskript";
5 version = "0.11.0";
6
7 format = "other";
8
9 src = fetchFromGitHub {
10 repo = pname;
11 owner = "olivierkes";
12 rev = version;
13 sha256 = "1l6l9k6k69yv8xqpll0zv9cwdqqg4zvxy90l6sx5nv2yywh5crla";
14 };
15
16 nativeBuildInputs = [ wrapQtAppsHook ];
17
18 propagatedBuildInputs = [
19 python3Packages.pyqt5
20 python3Packages.lxml
21 zlib
22 ];
23
24 patchPhase = ''
25 substituteInPlace manuskript/ui/welcome.py \
26 --replace sample-projects $out/share/${pname}/sample-projects
27 '';
28
29 buildPhase = "";
30
31 installPhase = ''
32 mkdir -p $out/share/${pname}
33 cp -av bin/ i18n/ libs/ manuskript/ resources/ icons/ $out
34 cp -r sample-projects/ $out/share/${pname}
35 '';
36
37 postFixup = ''
38 wrapQtApp $out/bin/manuskript
39 '';
40
41 doCheck = false;
42
43 meta = {
44 description = "A open-source tool for writers";
45 homepage = "http://www.theologeek.ch/manuskript";
46 longDescription = ''
47 Manuskript is a tool for those writer who like to organize and
48 plan everything before writing. The snowflake method can help you
49 grow your idea into a book, by leading you step by step and asking
50 you questions to go deeper. While writing, keep track of notes
51 about every characters, plot, event, place in your story.
52
53 Develop complex characters and keep track of all useful infos.
54 Create intricate plots, linked to your characters, and use them to
55 outline your story. Organize your ideas about the world your
56 characters live in.
57 '';
58 license = lib.licenses.gpl3;
59 maintainers = [ lib.maintainers.steveej ];
60 platforms = lib.platforms.unix;
61 };
62}