summaryrefslogtreecommitdiff
path: root/pkgs/ahoviewer.nix
blob: dbd747c9231b78c604bd37eb168db65db92be684 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
{ 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;
  };
}