1
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs synced 2024-10-19 03:47:13 -04:00
nixpkgs/pkgs/development/libraries/libhttpseverywhere/default.nix

42 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 14:39:10 -04:00
stdenv.mkDerivation rec {
major = "0.2";
2017-03-10 16:56:35 -05:00
minor = "10";
version = "${major}.${minor}";
2016-10-10 14:39:10 -04:00
name = "libhttpseverywhere-${version}";
src = fetchurl {
url = "mirror://gnome/sources/libhttpseverywhere/${major}/libhttpseverywhere-${version}.tar.xz";
2017-03-10 16:56:35 -05:00
sha256 = "235f5b7f96188d800470871774e31696fbde085b63f65bd71434af8e9e6ac8aa";
2016-10-10 14:39:10 -04: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
2017-03-10 16:56:35 -05:00
'';
2016-10-10 14:39:10 -04:00
installPhase = "ninja install";
2016-10-24 11:13:16 -04:00
doCheck = true;
checkPhase = "./httpseverywhere_test";
2016-10-10 14:39:10 -04:00
meta = {
description = "library to use HTTPSEverywhere in desktop applications";
homepage = https://git.gnome.org/browse/libhttpseverywhere;
2016-10-10 14:39:10 -04:00
license = stdenv.lib.licenses.lgpl3;
platforms = stdenv.lib.platforms.linux;
maintainers = with stdenv.lib.maintainers; [ sternenseemann ];
};
}