2017-12-29 04:49:56 -08:00
|
|
|
{ stdenv, fetchurl, pkgconfig, meson, ninja, valadoc
|
2018-02-24 18:23:58 -08:00
|
|
|
, gnome3, glib, json-glib, libarchive, libsoup, gobjectIntrospection }:
|
2016-10-10 11:39:10 -07:00
|
|
|
|
2018-03-02 19:03:21 -08:00
|
|
|
let
|
|
|
|
pname = "libhttpseverywhere";
|
2018-03-12 18:03:18 -07:00
|
|
|
version = "0.8.2";
|
2018-03-02 19:03:21 -08:00
|
|
|
in stdenv.mkDerivation rec {
|
|
|
|
name = "${pname}-${version}";
|
2016-10-10 11:39:10 -07:00
|
|
|
|
2016-10-29 11:47:37 -07:00
|
|
|
src = fetchurl {
|
2018-03-02 19:03:21 -08:00
|
|
|
url = "mirror://gnome/sources/${pname}/${gnome3.versionBranch version}/${name}.tar.xz";
|
2018-03-12 18:03:18 -07:00
|
|
|
sha256 = "0vcnimlfcscyvjbh845xbnjb9qc8x0mliaqz2gczxxpakxrbl3gh";
|
2016-10-10 11:39:10 -07:00
|
|
|
};
|
|
|
|
|
2017-12-29 04:49:56 -08:00
|
|
|
nativeBuildInputs = [ gnome3.vala gobjectIntrospection meson ninja pkgconfig valadoc ];
|
2018-02-24 18:23:58 -08:00
|
|
|
buildInputs = [ glib gnome3.libgee json-glib libsoup libarchive ];
|
2017-12-29 04:49:56 -08:00
|
|
|
|
2018-03-02 19:03:21 -08:00
|
|
|
mesonFlags = [ "-Denable_valadoc=true" ];
|
2016-10-10 11:39:10 -07:00
|
|
|
|
2016-10-24 08:13:16 -07:00
|
|
|
doCheck = true;
|
|
|
|
|
2018-03-21 03:02:37 -07:00
|
|
|
checkPhase = "(cd test && ./httpseverywhere_test)";
|
2016-10-24 08:13:16 -07:00
|
|
|
|
2017-12-29 04:49:56 -08:00
|
|
|
outputs = [ "out" "devdoc" ];
|
|
|
|
|
2018-03-02 19:03:21 -08:00
|
|
|
passthru = {
|
|
|
|
updateScript = gnome3.updateScript {
|
|
|
|
packageName = pname;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Library to use HTTPSEverywhere in desktop applications";
|
|
|
|
homepage = https://git.gnome.org/browse/libhttpseverywhere;
|
|
|
|
license = licenses.lgpl3;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ sternenseemann ] ++ gnome3.maintainers;
|
2016-10-10 11:39:10 -07:00
|
|
|
};
|
|
|
|
}
|