2021-01-21 17:00:13 +00:00
|
|
|
{ lib, stdenv, fetchurl, pkg-config, meson, ninja, makeFontsConf, vala, fetchpatch
|
2021-05-07 22:18:14 +01:00
|
|
|
, gnome, libgee, glib, json-glib, libarchive, libsoup, gobject-introspection }:
|
2016-10-10 19:39:10 +01:00
|
|
|
|
2018-03-03 03:03:21 +00:00
|
|
|
let
|
|
|
|
pname = "libhttpseverywhere";
|
2018-04-23 11:52:04 +01:00
|
|
|
version = "0.8.3";
|
2018-03-03 03:03:21 +00:00
|
|
|
in stdenv.mkDerivation rec {
|
|
|
|
name = "${pname}-${version}";
|
2016-10-10 19:39:10 +01:00
|
|
|
|
2016-10-29 19:47:37 +01:00
|
|
|
src = fetchurl {
|
2021-01-21 17:00:13 +00:00
|
|
|
url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${name}.tar.xz";
|
2018-04-23 11:52:04 +01:00
|
|
|
sha256 = "1jmn6i4vsm89q1axlq4ajqkzqmlmjaml9xhw3h9jnal46db6y00w";
|
2016-10-10 19:39:10 +01:00
|
|
|
};
|
|
|
|
|
2021-01-19 06:50:56 +00:00
|
|
|
nativeBuildInputs = [ vala gobject-introspection meson ninja pkg-config ];
|
2021-03-16 17:30:03 +00:00
|
|
|
buildInputs = [ glib libgee json-glib libsoup libarchive ];
|
2017-12-29 12:49:56 +00:00
|
|
|
|
2019-03-18 02:00:47 +00:00
|
|
|
patches = [
|
2022-01-22 17:48:14 +00:00
|
|
|
# Fixes build with vala >=0.42
|
2019-03-18 02:00:47 +00:00
|
|
|
(fetchpatch {
|
|
|
|
url = "https://gitlab.gnome.org/GNOME/libhttpseverywhere/commit/6da08ef1ade9ea267cecf14dd5cb2c3e6e5e50cb.patch";
|
|
|
|
sha256 = "1nwjlh8iqgjayccwdh0fbpq2g1h8bg1k1g9i324f2bhhvyhmpq8f";
|
|
|
|
})
|
2022-01-22 17:48:14 +00:00
|
|
|
# fix build with meson 0.60
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://gitlab.gnome.org/GNOME/libhttpseverywhere/-/commit/4c38b2ca25802c464f3204a62815201d8cf549fd.patch";
|
|
|
|
sha256 = "sha256-1+fmR0bpvJ9ISN2Hr+BTIQz+Bf6VfY1RdVZ/OohUlWU=";
|
|
|
|
})
|
2019-03-18 02:00:47 +00:00
|
|
|
];
|
|
|
|
|
2018-03-03 03:03:21 +00:00
|
|
|
mesonFlags = [ "-Denable_valadoc=true" ];
|
2016-10-10 19:39:10 +01:00
|
|
|
|
2016-10-24 16:13:16 +01:00
|
|
|
doCheck = true;
|
|
|
|
|
2018-03-21 10:02:37 +00:00
|
|
|
checkPhase = "(cd test && ./httpseverywhere_test)";
|
2016-10-24 16:13:16 +01:00
|
|
|
|
2018-03-13 17:50:04 +00:00
|
|
|
FONTCONFIG_FILE = makeFontsConf { fontDirectories = [ ]; };
|
|
|
|
|
2017-12-29 12:49:56 +00:00
|
|
|
outputs = [ "out" "devdoc" ];
|
|
|
|
|
2018-03-03 03:03:21 +00:00
|
|
|
passthru = {
|
2021-05-07 22:18:14 +01:00
|
|
|
updateScript = gnome.updateScript {
|
2018-03-03 03:03:21 +00:00
|
|
|
packageName = pname;
|
2021-03-20 23:57:24 +00:00
|
|
|
versionPolicy = "odd-unstable";
|
2018-03-03 03:03:21 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2021-01-21 17:00:13 +00:00
|
|
|
meta = with lib; {
|
2018-03-03 03:03:21 +00:00
|
|
|
description = "Library to use HTTPSEverywhere in desktop applications";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://gitlab.gnome.org/GNOME/libhttpseverywhere";
|
2018-03-03 03:03:21 +00:00
|
|
|
license = licenses.lgpl3;
|
|
|
|
platforms = platforms.linux;
|
2020-04-01 13:40:51 +01:00
|
|
|
maintainers = with maintainers; [ sternenseemann ] ++ teams.gnome.members;
|
2016-10-10 19:39:10 +01:00
|
|
|
};
|
|
|
|
}
|