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

43 lines
1.3 KiB
Nix
Raw Normal View History

2018-09-05 13:53:24 +02:00
{ stdenv, fetchurl, pkgconfig, meson, ninja, makeFontsConf, vala_0_40
, gnome3, glib, json-glib, libarchive, libsoup, gobject-introspection }:
2016-10-10 20:39:10 +02:00
2018-03-03 04:03:21 +01:00
let
pname = "libhttpseverywhere";
2018-04-23 12:52:04 +02:00
version = "0.8.3";
2018-03-03 04:03:21 +01:00
in stdenv.mkDerivation rec {
name = "${pname}-${version}";
2016-10-10 20:39:10 +02:00
src = fetchurl {
url = "mirror://gnome/sources/${pname}/${stdenv.lib.versions.majorMinor version}/${name}.tar.xz";
2018-04-23 12:52:04 +02:00
sha256 = "1jmn6i4vsm89q1axlq4ajqkzqmlmjaml9xhw3h9jnal46db6y00w";
2016-10-10 20:39:10 +02:00
};
2018-09-05 13:53:24 +02:00
# Broken with newest Vala https://gitlab.gnome.org/GNOME/libhttpseverywhere/issues/1
nativeBuildInputs = [ vala_0_40 gobject-introspection meson ninja pkgconfig ];
buildInputs = [ glib gnome3.libgee json-glib libsoup libarchive ];
2017-12-29 13:49:56 +01:00
2018-03-03 04:03:21 +01:00
mesonFlags = [ "-Denable_valadoc=true" ];
2016-10-10 20:39:10 +02:00
2016-10-24 17:13:16 +02:00
doCheck = true;
checkPhase = "(cd test && ./httpseverywhere_test)";
2016-10-24 17:13:16 +02:00
2018-03-13 18:50:04 +01:00
FONTCONFIG_FILE = makeFontsConf { fontDirectories = [ ]; };
2017-12-29 13:49:56 +01:00
outputs = [ "out" "devdoc" ];
2018-03-03 04:03:21 +01:00
passthru = {
updateScript = gnome3.updateScript {
packageName = pname;
};
};
meta = with stdenv.lib; {
description = "Library to use HTTPSEverywhere in desktop applications";
2018-05-29 10:31:23 +02:00
homepage = https://gitlab.gnome.org/GNOME/libhttpseverywhere;
2018-03-03 04:03:21 +01:00
license = licenses.lgpl3;
platforms = platforms.linux;
maintainers = with maintainers; [ sternenseemann ] ++ gnome3.maintainers;
2016-10-10 20:39:10 +02:00
};
}