nixpkgs/pkgs/development/libraries/libhttpseverywhere/default.nix

50 lines
1.5 KiB
Nix
Raw Normal View History

{ stdenv, fetchurl, pkgconfig, meson, ninja, makeFontsConf, vala, fetchpatch
, gnome3, glib, json-glib, libarchive, libsoup, gobject-introspection }:
2016-10-10 18:39:10 +00:00
2018-03-03 03:03:21 +00:00
let
pname = "libhttpseverywhere";
2018-04-23 10:52:04 +00:00
version = "0.8.3";
2018-03-03 03:03:21 +00:00
in stdenv.mkDerivation rec {
name = "${pname}-${version}";
2016-10-10 18:39:10 +00:00
src = fetchurl {
url = "mirror://gnome/sources/${pname}/${stdenv.lib.versions.majorMinor version}/${name}.tar.xz";
2018-04-23 10:52:04 +00:00
sha256 = "1jmn6i4vsm89q1axlq4ajqkzqmlmjaml9xhw3h9jnal46db6y00w";
2016-10-10 18:39:10 +00:00
};
nativeBuildInputs = [ vala gobject-introspection meson ninja pkgconfig ];
buildInputs = [ glib gnome3.libgee json-glib libsoup libarchive ];
2017-12-29 12:49:56 +00:00
# Fixes build with vala >=0.42
patches = [
(fetchpatch {
url = "https://gitlab.gnome.org/GNOME/libhttpseverywhere/commit/6da08ef1ade9ea267cecf14dd5cb2c3e6e5e50cb.patch";
sha256 = "1nwjlh8iqgjayccwdh0fbpq2g1h8bg1k1g9i324f2bhhvyhmpq8f";
})
];
2018-03-03 03:03:21 +00:00
mesonFlags = [ "-Denable_valadoc=true" ];
2016-10-10 18:39:10 +00:00
2016-10-24 15:13:16 +00:00
doCheck = true;
checkPhase = "(cd test && ./httpseverywhere_test)";
2016-10-24 15:13:16 +00: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 = {
updateScript = gnome3.updateScript {
packageName = pname;
};
};
meta = with stdenv.lib; {
description = "Library to use HTTPSEverywhere in desktop applications";
homepage = "https://gitlab.gnome.org/GNOME/libhttpseverywhere";
2018-03-03 03:03:21 +00:00
license = licenses.lgpl3;
platforms = platforms.linux;
maintainers = with maintainers; [ sternenseemann ] ++ teams.gnome.members;
2016-10-10 18:39:10 +00:00
};
}