2021-01-25 08:26:54 +00:00
|
|
|
{ lib, zlib, fetchFromGitHub, python3Packages, wrapQtAppsHook }:
|
2016-08-11 18:26:18 +01:00
|
|
|
|
|
|
|
python3Packages.buildPythonApplication rec {
|
2018-05-28 13:59:57 +01:00
|
|
|
pname = "manuskript";
|
2022-01-02 17:05:02 +00:00
|
|
|
version = "0.13.1";
|
2016-08-11 18:26:18 +01:00
|
|
|
|
2019-09-12 11:23:50 +01:00
|
|
|
format = "other";
|
|
|
|
|
2016-08-11 18:26:18 +01:00
|
|
|
src = fetchFromGitHub {
|
2018-05-28 13:59:57 +01:00
|
|
|
repo = pname;
|
2016-08-11 18:26:18 +01:00
|
|
|
owner = "olivierkes";
|
|
|
|
rev = version;
|
2022-01-02 17:05:02 +00:00
|
|
|
hash = "sha256-TEmAamNdqBK7bu62tLtJl05wBI6hga84PQSrWiMPROY=";
|
2016-08-11 18:26:18 +01:00
|
|
|
};
|
|
|
|
|
2019-09-12 11:23:50 +01:00
|
|
|
nativeBuildInputs = [ wrapQtAppsHook ];
|
|
|
|
|
2016-08-11 18:26:18 +01:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
python3Packages.pyqt5
|
|
|
|
python3Packages.lxml
|
|
|
|
zlib
|
|
|
|
];
|
|
|
|
|
2016-08-29 21:55:45 +01:00
|
|
|
patchPhase = ''
|
|
|
|
substituteInPlace manuskript/ui/welcome.py \
|
2018-05-28 13:59:57 +01:00
|
|
|
--replace sample-projects $out/share/${pname}/sample-projects
|
2016-08-29 21:55:45 +01:00
|
|
|
'';
|
|
|
|
|
2021-01-24 09:19:10 +00:00
|
|
|
buildPhase = "";
|
2016-08-11 18:26:18 +01:00
|
|
|
|
|
|
|
installPhase = ''
|
2018-05-28 13:59:57 +01:00
|
|
|
mkdir -p $out/share/${pname}
|
2016-08-29 21:55:45 +01:00
|
|
|
cp -av bin/ i18n/ libs/ manuskript/ resources/ icons/ $out
|
2018-05-28 13:59:57 +01:00
|
|
|
cp -r sample-projects/ $out/share/${pname}
|
2016-08-11 18:26:18 +01:00
|
|
|
'';
|
|
|
|
|
2019-09-12 11:23:50 +01:00
|
|
|
postFixup = ''
|
|
|
|
wrapQtApp $out/bin/manuskript
|
|
|
|
'';
|
|
|
|
|
2016-08-11 18:26:18 +01:00
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "A open-source tool for writers";
|
2022-01-02 17:05:02 +00:00
|
|
|
homepage = "https://www.theologeek.ch/manuskript";
|
2016-08-29 21:55:45 +01:00
|
|
|
longDescription = ''
|
|
|
|
Manuskript is a tool for those writer who like to organize and
|
|
|
|
plan everything before writing. The snowflake method can help you
|
|
|
|
grow your idea into a book, by leading you step by step and asking
|
|
|
|
you questions to go deeper. While writing, keep track of notes
|
|
|
|
about every characters, plot, event, place in your story.
|
|
|
|
|
|
|
|
Develop complex characters and keep track of all useful infos.
|
|
|
|
Create intricate plots, linked to your characters, and use them to
|
|
|
|
outline your story. Organize your ideas about the world your
|
|
|
|
characters live in.
|
|
|
|
'';
|
2021-01-15 13:21:58 +00:00
|
|
|
license = lib.licenses.gpl3;
|
|
|
|
maintainers = [ lib.maintainers.steveej ];
|
2021-03-22 05:47:52 +00:00
|
|
|
platforms = lib.platforms.unix;
|
2016-08-11 18:26:18 +01:00
|
|
|
};
|
|
|
|
}
|