From 2785958760386e8098fea9df4be8c3c54ff02032 Mon Sep 17 00:00:00 2001 From: worldofpeace Date: Sat, 8 Sep 2018 03:39:14 -0400 Subject: [PATCH] bookworm: init at 1.0.0 --- pkgs/applications/office/bookworm/default.nix | 53 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 + 2 files changed, 55 insertions(+) create mode 100644 pkgs/applications/office/bookworm/default.nix diff --git a/pkgs/applications/office/bookworm/default.nix b/pkgs/applications/office/bookworm/default.nix new file mode 100644 index 000000000000..45c794c82ea5 --- /dev/null +++ b/pkgs/applications/office/bookworm/default.nix @@ -0,0 +1,53 @@ +{ stdenv, fetchFromGitHub, vala, pkgconfig, libxml2, cmake, ninja, gtk3, granite, gnome3 +, gobjectIntrospection, sqlite, poppler, poppler_utils, html2text, unzip, unar, wrapGAppsHook }: + +stdenv.mkDerivation rec { + pname = "bookworm"; + version = "1.0.0"; + + name = "${pname}-${version}"; + + src = fetchFromGitHub { + owner = "babluboy"; + repo = pname; + rev = version; + sha256 = "0nv1nxird0s0qfhh8fr82mkj4qimhklw1bwcjwmvjdsvsxxs9520"; + }; + + nativeBuildInputs = [ + cmake + gobjectIntrospection + libxml2 + ninja + pkgconfig + vala + wrapGAppsHook + ]; + + buildInputs = with gnome3; [ + glib + granite + gtk3 + html2text + libgee + poppler + sqlite + webkitgtk + ]; + + preFixup = '' + gappsWrapperArgs+=( + --prefix PATH : "${stdenv.lib.makeBinPath [ unzip unar poppler_utils html2text ]}" + ) + ''; + + meta = with stdenv.lib; { + description = "A simple, focused eBook reader"; + longDescription = '' + Read the books you love without having to worry about different format complexities like epub, pdf, mobi, cbr, etc. + ''; + homepage = https://babluboy.github.io/bookworm/; + license = licenses.gpl3Plus; + platforms = platforms.linux; + }; + } diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 06a7aaa9a68a..d77d022beb9c 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -15701,6 +15701,8 @@ with pkgs; browsh = callPackage ../applications/networking/browsers/browsh { }; + bookworm = callPackage ../applications/office/bookworm { }; + chromium = callPackage ../applications/networking/browsers/chromium { channel = "stable"; pulseSupport = config.pulseaudio or true;