41 lines
1.1 KiB
Nix
41 lines
1.1 KiB
Nix
{stdenv, fetchurl, gnome3, glib, json_glib, libxml2, libarchive, libsoup, gobjectIntrospection, meson, ninja, pkgconfig, valadoc}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
major = "0.4";
|
|
minor = "2";
|
|
version = "${major}.${minor}";
|
|
|
|
name = "libhttpseverywhere-${version}";
|
|
|
|
src = fetchurl {
|
|
url = "mirror://gnome/sources/libhttpseverywhere/${major}/libhttpseverywhere-${version}.tar.xz";
|
|
sha256 = "0n850a4adsla6di8dylnadg07wblkdl28abrjvk6fzy8a1kjlx02";
|
|
};
|
|
|
|
nativeBuildInputs = [ gnome3.vala valadoc gobjectIntrospection meson ninja pkgconfig ];
|
|
buildInputs = [ glib gnome3.libgee libxml2 json_glib libsoup libarchive ];
|
|
|
|
configurePhase = ''
|
|
mkdir build
|
|
cd build
|
|
meson --prefix "$out" ..
|
|
'';
|
|
|
|
buildPhase = ''
|
|
ninja
|
|
'';
|
|
|
|
installPhase = "ninja install";
|
|
|
|
doCheck = true;
|
|
|
|
checkPhase = "./httpseverywhere_test";
|
|
|
|
meta = {
|
|
description = "library to use HTTPSEverywhere in desktop applications";
|
|
homepage = https://git.gnome.org/browse/libhttpseverywhere;
|
|
license = stdenv.lib.licenses.lgpl3;
|
|
platforms = stdenv.lib.platforms.linux;
|
|
maintainers = with stdenv.lib.maintainers; [ sternenseemann ];
|
|
};
|
|
}
|