summary refs log tree commit diff
path: root/pkgs/development/libraries/libhttpseverywhere
diff options
context:
space:
mode:
authorGraham Christensen <graham@grahamc.com>2016-10-11 14:15:31 -0400
committerGitHub <noreply@github.com>2016-10-11 14:15:31 -0400
commit945da0166c5f0343c9c52c714c9fbcb8c631e41e (patch)
treedfab782bb9f93d40d3589cc6de7d9a874cd1e462 /pkgs/development/libraries/libhttpseverywhere
parent6898810ba65a166192df3efe78808c799a5b8f49 (diff)
parent3229de5eb557fa71c5ebf0f3c933c7aa36368a70 (diff)
downloadnixpkgs-945da0166c5f0343c9c52c714c9fbcb8c631e41e.tar
nixpkgs-945da0166c5f0343c9c52c714c9fbcb8c631e41e.tar.gz
nixpkgs-945da0166c5f0343c9c52c714c9fbcb8c631e41e.tar.bz2
nixpkgs-945da0166c5f0343c9c52c714c9fbcb8c631e41e.tar.lz
nixpkgs-945da0166c5f0343c9c52c714c9fbcb8c631e41e.tar.xz
nixpkgs-945da0166c5f0343c9c52c714c9fbcb8c631e41e.tar.zst
nixpkgs-945da0166c5f0343c9c52c714c9fbcb8c631e41e.zip
Merge pull request #19432 from sternenseemann/libhttpseverywhere
libhttpseverywhere: init at 0.1.0
Diffstat (limited to 'pkgs/development/libraries/libhttpseverywhere')
-rw-r--r--pkgs/development/libraries/libhttpseverywhere/default.nix36
-rw-r--r--pkgs/development/libraries/libhttpseverywhere/meson.patch13
2 files changed, 49 insertions, 0 deletions
diff --git a/pkgs/development/libraries/libhttpseverywhere/default.nix b/pkgs/development/libraries/libhttpseverywhere/default.nix
new file mode 100644
index 00000000000..304bfcd8560
--- /dev/null
+++ b/pkgs/development/libraries/libhttpseverywhere/default.nix
@@ -0,0 +1,36 @@
+{stdenv, fetchFromGitHub, gnome3, glib, json_glib, libxml2, libarchive, libsoup, gobjectIntrospection, meson, ninja, pkgconfig,  valadoc}:
+
+stdenv.mkDerivation rec {
+  name = "libhttpseverywhere-${version}";
+  version = "0.1.0";
+
+  src = fetchFromGitHub {
+    owner = "grindhold";
+    repo  = "libhttpseverywhere";
+    rev = "${version}";
+    sha256 = "1b8bcg4jp2h3nwk1g7jgswsipqzkjq2gb017v07wb7nvl6kdi0rc";
+  };
+
+  nativeBuildInputs = [ gnome3.vala valadoc  gobjectIntrospection meson ninja pkgconfig ];
+  buildInputs = [ glib gnome3.libgee libxml2 json_glib libsoup libarchive ];
+
+  patches = [ ./meson.patch ];
+
+  configurePhase = ''
+    mkdir build
+    cd build
+    meson.py --prefix "$out" ..
+  '';
+
+  buildPhase = "ninja";
+
+  installPhase = "ninja install";
+
+  meta = {
+    description = "library to use HTTPSEverywhere in desktop applications";
+    homepage    = https://github.com/grindhold/libhttpseverywhere;
+    license     = stdenv.lib.licenses.lgpl3;
+    platforms   = stdenv.lib.platforms.linux;
+    maintainers = with stdenv.lib.maintainers; [ sternenseemann ];
+  };
+}
diff --git a/pkgs/development/libraries/libhttpseverywhere/meson.patch b/pkgs/development/libraries/libhttpseverywhere/meson.patch
new file mode 100644
index 00000000000..3a86bf6b836
--- /dev/null
+++ b/pkgs/development/libraries/libhttpseverywhere/meson.patch
@@ -0,0 +1,13 @@
+diff --git a/meson.build b/meson.build
+index c20c2f9..f40bb2b 100644
+--- a/meson.build
++++ b/meson.build
+@@ -19,7 +19,7 @@
+ # If not, see http://www.gnu.org/licenses/.
+ #*********************************************************************
+ 
+-project ('httpseverywhere', ['vala','c'])
++project ('httpseverywhere', 'vala','c')
+ 
+ pkgconfig = import('pkgconfig')
+