summaryrefslogtreecommitdiff
path: root/pkgs/ahoviewer.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/ahoviewer.nix')
-rw-r--r--pkgs/ahoviewer.nix54
1 files changed, 54 insertions, 0 deletions
diff --git a/pkgs/ahoviewer.nix b/pkgs/ahoviewer.nix
new file mode 100644
index 0000000..38524dc
--- /dev/null
+++ b/pkgs/ahoviewer.nix
@@ -0,0 +1,54 @@
+{
+ pkgs ? import <nixpkgs> { },
+}:
+pkgs.stdenv.mkDerivation rec {
+ pname = "ahoviewer";
+ version = "42e16f9";
+
+ src = pkgs.fetchFromGitHub {
+ owner = "ahodesuka";
+ repo = pname;
+ rev = "42e16f94b78496e3e346f0d127baa569039a6757";
+ sha256 = "sha256-HcijKiExwyBoWDvMlJ5AMA0U7BtS9EfcA54nfQ/iGvE=";
+ };
+
+ buildInputs = with pkgs; [
+ meson
+ ninja
+ gtkmm3
+ gtk3
+ libconfig
+ libxml2
+ curl
+ gst_all_1.gstreamer
+ gst_all_1.gst-plugins-base
+ libpeas
+ libsecret
+ libzip
+ ];
+
+ nativeBuildInputs = [ pkgs.pkg-config ];
+
+ configurePhase = ''
+ meson setup build --buildtype=release
+ '';
+
+ buildPhase = ''
+ cd build
+ ninja
+ cd ..
+ '';
+
+ installPhase = ''
+ mkdir -p $out/bin
+ cp build/src/ahoviewer $out/bin
+ '';
+
+ meta = with pkgs.lib; {
+ description = "A GTK image viewer, manga reader, and booru browser";
+ homepage = "https://github.com/ahodesuka/ahoviewer";
+ license = licenses.mit;
+ maintainers = with maintainers; [ ];
+ platforms = platforms.linux;
+ };
+}