@@ -0,0 +1,36 @@
1+{stdenv, fetchFromGitHub, gnome3, glib, json_glib, libxml2, libarchive, libsoup, gobjectIntrospection, meson, ninja, pkgconfig, valadoc}:
2+
3+stdenv.mkDerivation rec {
4+ name = "libhttpseverywhere-${version}";
5+ version = "0.1.0";
6+
7+ src = fetchFromGitHub {
8+ owner = "grindhold";
9+ repo = "libhttpseverywhere";
10+ rev = "${version}";
11+ sha256 = "1b8bcg4jp2h3nwk1g7jgswsipqzkjq2gb017v07wb7nvl6kdi0rc";
12+ };
13+
14+ nativeBuildInputs = [ gnome3.vala valadoc gobjectIntrospection meson ninja pkgconfig ];
15+ buildInputs = [ glib gnome3.libgee libxml2 json_glib libsoup libarchive ];
16+
17+ patches = [ ./meson.patch ];
18+
19+ configurePhase = ''
20+ mkdir build
21+ cd build
22+ meson.py --prefix "$out" ..
23+ '';
24+
25+ buildPhase = "ninja";
26+
27+ installPhase = "ninja install";
28+
29+ meta = {
30+ description = "library to use HTTPSEverywhere in desktop applications";
31+ homepage = https://github.com/grindhold/libhttpseverywhere;
32+ license = stdenv.lib.licenses.lgpl3;
33+ platforms = stdenv.lib.platforms.linux;
34+ maintainers = with stdenv.lib.maintainers; [ sternenseemann ];
35+ };
36+}