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

43 lines
1.2 KiB
Nix
Raw Normal View History

{stdenv, fetchurl, gnome3, glib, json_glib, libxml2, libarchive, libsoup, gobjectIntrospection, meson, ninja, pkgconfig, valadoc}:
2016-10-10 19:39:10 +01:00
stdenv.mkDerivation rec {
major = "0.2";
minor = "3";
version = "${major}.${minor}";
2016-10-10 19:39:10 +01:00
name = "libhttpseverywhere-${version}";
src = fetchurl {
url = "mirror://gnome/sources/libhttpseverywhere/${major}/libhttpseverywhere-${version}.tar.xz";
sha256 = "0ndk6yyfcd7iwwkv4rkivhd08k0x8v03gnp9dk1ms4bxb1l2i8l1";
2016-10-10 19:39:10 +01:00
};
nativeBuildInputs = [ gnome3.vala valadoc gobjectIntrospection meson ninja pkgconfig ];
buildInputs = [ glib gnome3.libgee libxml2 json_glib libsoup libarchive ];
configurePhase = ''
mkdir build
cd build
meson.py --prefix "$out" ..
'';
buildPhase = ''
ninja
ninja devhelp
'';
2016-10-10 19:39:10 +01:00
installPhase = "ninja install";
2016-10-24 16:13:16 +01:00
doCheck = true;
checkPhase = "./httpseverywhere_test";
2016-10-10 19:39:10 +01:00
meta = {
description = "library to use HTTPSEverywhere in desktop applications";
homepage = https://git.gnome.org/browse/libhttpseverywhere;
2016-10-10 19:39:10 +01:00
license = stdenv.lib.licenses.lgpl3;
platforms = stdenv.lib.platforms.linux;
maintainers = with stdenv.lib.maintainers; [ sternenseemann ];
};
}