2021-02-05 17:12:51 +00:00
|
|
|
{ lib, stdenv, fetchurl, pkg-config, meson, ninja, makeFontsConf, vala, fetchpatch
|
2021-05-20 23:08:51 +00:00
|
|
|
, gnome, libgee, glib, json-glib, libarchive, libsoup, gobject-introspection }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
let
|
|
|
|
pname = "libhttpseverywhere";
|
|
|
|
version = "0.8.3";
|
|
|
|
in stdenv.mkDerivation rec {
|
|
|
|
name = "${pname}-${version}";
|
|
|
|
|
|
|
|
src = fetchurl {
|
2021-02-05 17:12:51 +00:00
|
|
|
url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${name}.tar.xz";
|
2020-04-24 23:36:52 +00:00
|
|
|
sha256 = "1jmn6i4vsm89q1axlq4ajqkzqmlmjaml9xhw3h9jnal46db6y00w";
|
|
|
|
};
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
nativeBuildInputs = [ vala gobject-introspection meson ninja pkg-config ];
|
2021-03-19 17:17:44 +00:00
|
|
|
buildInputs = [ glib libgee json-glib libsoup libarchive ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
# Fixes build with vala >=0.42
|
|
|
|
patches = [
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://gitlab.gnome.org/GNOME/libhttpseverywhere/commit/6da08ef1ade9ea267cecf14dd5cb2c3e6e5e50cb.patch";
|
|
|
|
sha256 = "1nwjlh8iqgjayccwdh0fbpq2g1h8bg1k1g9i324f2bhhvyhmpq8f";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
|
|
|
mesonFlags = [ "-Denable_valadoc=true" ];
|
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
|
|
|
|
checkPhase = "(cd test && ./httpseverywhere_test)";
|
|
|
|
|
|
|
|
FONTCONFIG_FILE = makeFontsConf { fontDirectories = [ ]; };
|
|
|
|
|
|
|
|
outputs = [ "out" "devdoc" ];
|
|
|
|
|
|
|
|
passthru = {
|
2021-05-20 23:08:51 +00:00
|
|
|
updateScript = gnome.updateScript {
|
2020-04-24 23:36:52 +00:00
|
|
|
packageName = pname;
|
2021-05-20 23:08:51 +00:00
|
|
|
versionPolicy = "odd-unstable";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Library to use HTTPSEverywhere in desktop applications";
|
|
|
|
homepage = "https://gitlab.gnome.org/GNOME/libhttpseverywhere";
|
|
|
|
license = licenses.lgpl3;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ sternenseemann ] ++ teams.gnome.members;
|
|
|
|
};
|
|
|
|
}
|