summary refs log tree commit diff
path: root/pkgs/applications/office/bookworm
diff options
context:
space:
mode:
authorworldofpeace <worldofpeace@users.noreply.github.com>2018-09-08 03:39:14 -0400
committerworldofpeace <worldofpeace@users.noreply.github.com>2018-09-09 17:22:38 -0400
commit2785958760386e8098fea9df4be8c3c54ff02032 (patch)
tree31f4a999d3488c5f957a64f03564ba4d62edebf6 /pkgs/applications/office/bookworm
parent1acfddb69ab223f316a331e26fcd4a2c606537c7 (diff)
downloadnixlib-2785958760386e8098fea9df4be8c3c54ff02032.tar
nixlib-2785958760386e8098fea9df4be8c3c54ff02032.tar.gz
nixlib-2785958760386e8098fea9df4be8c3c54ff02032.tar.bz2
nixlib-2785958760386e8098fea9df4be8c3c54ff02032.tar.lz
nixlib-2785958760386e8098fea9df4be8c3c54ff02032.tar.xz
nixlib-2785958760386e8098fea9df4be8c3c54ff02032.tar.zst
nixlib-2785958760386e8098fea9df4be8c3c54ff02032.zip
bookworm: init at 1.0.0
Diffstat (limited to 'pkgs/applications/office/bookworm')
-rw-r--r--pkgs/applications/office/bookworm/default.nix53
1 files changed, 53 insertions, 0 deletions
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;
+   };
+ }