@@ -0,0 +1,36 @@
1+{ stdenv, pkgs, fetchurl, fetchFromGitHub, pkgconfig, libconfig,
2+ gtkmm, glibmm, libxml2, libsecret, curl, unrar, libzip,
3+ librsvg, gst_all_1, autoreconfHook, makeWrapper }:
4+stdenv.mkDerivation {
5+ name = "ahoviewer-1.4.6";
6+ src = fetchFromGitHub {
7+ owner = "ahodesuka";
8+ repo = "ahoviewer";
9+ rev = "414cb91d66d96fab4b48593a7ef4d9ad461306aa";
10+ sha256 = "081jgfmbwf2av0cn229cf4qyv6ha80ridymsgwq45124b78y2bmb";
11+ };
12+ enableParallelBuilding = true;
13+ nativeBuildInputs = [ autoreconfHook pkgconfig makeWrapper ];
14+ buildInputs = [ glibmm libconfig gtkmm glibmm libxml2
15+ libsecret curl unrar libzip librsvg
16+ gst_all_1.gstreamer
17+ gst_all_1.gst-plugins-good
18+ gst_all_1.gst-plugins-bad
19+ gst_all_1.gst-libav
20+ gst_all_1.gst-plugins-base ];
21+ postPatch = ''patchShebangs version.sh'';
22+ postInstall = ''
23+ wrapProgram $out/bin/ahoviewer \
24+ --prefix GST_PLUGIN_SYSTEM_PATH_1_0 : "$GST_PLUGIN_SYSTEM_PATH_1_0" \
25+ --set GDK_PIXBUF_MODULE_FILE "$GDK_PIXBUF_MODULE_FILE"
26+ '';
27+ meta = {
28+ homepage = "https://github.com/ahodesuka/ahoviewer";
29+ description = "A GTK2 image viewer, manga reader, and booru browser";
30+ maintainers = [ stdenv.lib.maintainers.skrzyp ];
31+ license = stdenv.lib.licenses.mit;
32+ platforms = stdenv.lib.platforms.allBut [ "darwin" "cygwin" ];
33+ };
34+}
35+
36+