about summary refs log tree commit diff
path: root/nixpkgs/pkgs/applications/misc/qolibri/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/applications/misc/qolibri/default.nix')
-rw-r--r--nixpkgs/pkgs/applications/misc/qolibri/default.nix31
1 files changed, 31 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/applications/misc/qolibri/default.nix b/nixpkgs/pkgs/applications/misc/qolibri/default.nix
new file mode 100644
index 000000000000..af7cc7e01a6f
--- /dev/null
+++ b/nixpkgs/pkgs/applications/misc/qolibri/default.nix
@@ -0,0 +1,31 @@
+{ stdenv, lib, fetchFromGitHub, pkg-config, cmake, libeb, lzo
+, qtmultimedia, qttools, qtwebengine, wrapQtAppsHook }:
+
+stdenv.mkDerivation rec {
+  pname = "qolibri";
+  version = "2.1.4";
+
+  src = fetchFromGitHub {
+    owner = "ludios";
+    repo = "qolibri";
+    rev = version;
+    sha256 = "jyLF1MKDVH0Lt8lw+O93b+LQ4J+s42O3hebthJk83hg=";
+  };
+
+  nativeBuildInputs = [ pkg-config cmake qttools wrapQtAppsHook ];
+  buildInputs = [
+    libeb lzo qtmultimedia qtwebengine
+  ];
+
+  postInstall = ''
+    install -D $src/qolibri.desktop -t $out/share/applications
+  '';
+
+  meta = with lib; {
+    homepage = "https://github.com/ludios/qolibri";
+    description = "EPWING reader for viewing Japanese dictionaries";
+    platforms = platforms.linux;
+    maintainers = with maintainers; [ ];
+    license = licenses.gpl2;
+  };
+}