summary refs log tree commit diff
path: root/pkgs/development/libraries/libhttpseverywhere/default.nix
blob: c3405148242c91ea9c89f306331d998e2277f6b5 (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
{ stdenv, fetchurl, pkgconfig, meson, ninja, valadoc
, gnome3, glib, json_glib, libarchive, libsoup, gobjectIntrospection }:

stdenv.mkDerivation rec {
  major = "0.6";
  minor = "5";
  version = "${major}.${minor}";

  name = "libhttpseverywhere-${version}";

  src = fetchurl {
    url = "mirror://gnome/sources/libhttpseverywhere/${major}/libhttpseverywhere-${version}.tar.xz";
    sha256 = "0ksf6vqjyjii29dvy5147dmgqlqsq4d70xxai0p2prkx4jrwgj3z";
  };

  nativeBuildInputs = [ gnome3.vala gobjectIntrospection meson ninja pkgconfig valadoc ];
  buildInputs = [ glib gnome3.libgee json_glib libsoup libarchive ];

  mesonFlags = "-Denable_valadoc=true";

  doCheck = true;

  checkPhase = "./httpseverywhere_test";

  outputs = [ "out" "devdoc" ];

  meta = {
    description = "library to use HTTPSEverywhere in desktop applications";
    homepage    = https://git.gnome.org/browse/libhttpseverywhere;
    license     = stdenv.lib.licenses.lgpl3;
    platforms   = stdenv.lib.platforms.linux;
    maintainers = with stdenv.lib.maintainers; [ sternenseemann ];
  };
}