2016-10-29 19:47:37 +01:00
|
|
|
{stdenv, fetchurl, gnome3, glib, json_glib, libxml2, libarchive, libsoup, gobjectIntrospection, meson, ninja, pkgconfig, valadoc}:
|
2016-10-10 19:39:10 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2017-04-27 12:16:18 +01:00
|
|
|
major = "0.4";
|
|
|
|
minor = "2";
|
2016-10-29 19:47:37 +01:00
|
|
|
version = "${major}.${minor}";
|
|
|
|
|
2016-10-10 19:39:10 +01:00
|
|
|
name = "libhttpseverywhere-${version}";
|
|
|
|
|
2016-10-29 19:47:37 +01:00
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://gnome/sources/libhttpseverywhere/${major}/libhttpseverywhere-${version}.tar.xz";
|
2017-04-27 12:16:18 +01:00
|
|
|
sha256 = "0n850a4adsla6di8dylnadg07wblkdl28abrjvk6fzy8a1kjlx02";
|
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
|
2017-04-27 12:16:18 +01:00
|
|
|
meson --prefix "$out" ..
|
2016-10-10 19:39:10 +01:00
|
|
|
'';
|
|
|
|
|
2016-10-12 11:56:41 +01:00
|
|
|
buildPhase = ''
|
|
|
|
ninja
|
2017-03-10 21:56:35 +00:00
|
|
|
'';
|
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";
|
2016-10-29 19:47:37 +01:00
|
|
|
homepage = https://git.gnome.org/browse/libhttpseverywhere;
|
2016-10-10 19:39:10 +01:00
|
|
|
license = stdenv.lib.licenses.lgpl3;
|
|
|
|
platforms = stdenv.lib.platforms.linux;
|
|
|
|
maintainers = with stdenv.lib.maintainers; [ sternenseemann ];
|
|
|
|
};
|
|
|
|
}
|