mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-25 03:17:13 +00:00
4f0dadbf38
After final improvements to the official formatter implementation, this commit now performs the first treewide reformat of Nix files using it. This is part of the implementation of RFC 166. Only "inactive" files are reformatted, meaning only files that aren't being touched by any PR with activity in the past 2 months. This is to avoid conflicts for PRs that might soon be merged. Later we can do a full treewide reformat to get the rest, which should not cause as many conflicts. A CI check has already been running for some time to ensure that new and already-formatted files are formatted, so the files being reformatted here should also stay formatted. This commit was automatically created and can be verified using nix-builda08b3a4d19
.tar.gz \ --argstr baseRevb32a094368
result/bin/apply-formatting $NIXPKGS_PATH
70 lines
1.8 KiB
Nix
70 lines
1.8 KiB
Nix
{
|
|
lib,
|
|
zlib,
|
|
fetchFromGitHub,
|
|
python3Packages,
|
|
wrapQtAppsHook,
|
|
}:
|
|
|
|
python3Packages.buildPythonApplication rec {
|
|
pname = "manuskript";
|
|
version = "0.16.1";
|
|
|
|
format = "other";
|
|
|
|
src = fetchFromGitHub {
|
|
repo = pname;
|
|
owner = "olivierkes";
|
|
rev = "refs/tags/${version}";
|
|
hash = "sha256-/Ryvv5mHdZ3iwMpZjOa62h8D2B00pzknJ70DfjDTPPA=";
|
|
};
|
|
|
|
nativeBuildInputs = [ wrapQtAppsHook ];
|
|
|
|
propagatedBuildInputs = [
|
|
python3Packages.pyqt5
|
|
python3Packages.lxml
|
|
zlib
|
|
];
|
|
|
|
patchPhase = ''
|
|
substituteInPlace manuskript/ui/welcome.py \
|
|
--replace sample-projects $out/share/${pname}/sample-projects
|
|
'';
|
|
|
|
buildPhase = "";
|
|
|
|
installPhase = ''
|
|
mkdir -p $out/share/${pname}
|
|
cp -av bin/ i18n/ libs/ manuskript/ resources/ icons/ $out
|
|
cp -r sample-projects/ $out/share/${pname}
|
|
'';
|
|
|
|
postFixup = ''
|
|
wrapQtApp $out/bin/manuskript
|
|
'';
|
|
|
|
doCheck = false;
|
|
|
|
meta = {
|
|
description = "Open-source tool for writers";
|
|
homepage = "https://www.theologeek.ch/manuskript";
|
|
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.
|
|
'';
|
|
license = lib.licenses.gpl3;
|
|
maintainers = with lib.maintainers; [ strawbee ];
|
|
platforms = lib.platforms.unix;
|
|
mainProgram = "manuskript";
|
|
};
|
|
}
|