2016-10-10 19:39:10 +01:00
|
|
|
{stdenv, fetchFromGitHub, gnome3, glib, json_glib, libxml2, libarchive, libsoup, gobjectIntrospection, meson, ninja, pkgconfig, valadoc}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "libhttpseverywhere-${version}";
|
2016-10-25 16:26:43 +01:00
|
|
|
version = "0.2.3";
|
2016-10-10 19:39:10 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "grindhold";
|
|
|
|
repo = "libhttpseverywhere";
|
|
|
|
rev = "${version}";
|
2016-10-25 16:26:43 +01:00
|
|
|
sha256 = "0ggg1kw5yjakqqpnmjcbcpnq5m4lhc76javh8waqv2klr5mxd2a7";
|
2016-10-10 19:39:10 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ gnome3.vala valadoc gobjectIntrospection meson ninja pkgconfig ];
|
|
|
|
buildInputs = [ glib gnome3.libgee libxml2 json_glib libsoup libarchive ];
|
|
|
|
|
|
|
|
configurePhase = ''
|
|
|
|
mkdir build
|
|
|
|
cd build
|
|
|
|
meson.py --prefix "$out" ..
|
|
|
|
'';
|
|
|
|
|
2016-10-12 11:56:41 +01:00
|
|
|
buildPhase = ''
|
|
|
|
ninja
|
|
|
|
ninja devhelp
|
|
|
|
'';
|
2016-10-10 19:39:10 +01:00
|
|
|
|
|
|
|
installPhase = "ninja install";
|
|
|
|
|
2016-10-24 16:13:16 +01:00
|
|
|
doCheck = true;
|
|
|
|
|
|
|
|
checkPhase = "./httpseverywhere_test";
|
|
|
|
|
2016-10-10 19:39:10 +01:00
|
|
|
meta = {
|
|
|
|
description = "library to use HTTPSEverywhere in desktop applications";
|
|
|
|
homepage = https://github.com/grindhold/libhttpseverywhere;
|
|
|
|
license = stdenv.lib.licenses.lgpl3;
|
|
|
|
platforms = stdenv.lib.platforms.linux;
|
|
|
|
maintainers = with stdenv.lib.maintainers; [ sternenseemann ];
|
|
|
|
};
|
|
|
|
}
|