summary refs log tree commit diff
path: root/pkgs/applications/misc/surf
diff options
context:
space:
mode:
authorJordi <logann2019@gmail.com>2013-03-01 19:31:00 +0100
committerJordi <logann2019@gmail.com>2013-03-01 19:31:00 +0100
commit0d6f6e6d37365187b2ad94f3233b9aa656f573b0 (patch)
tree7efdfbd7a49c69f47b3c0e949195daf24efabeb7 /pkgs/applications/misc/surf
parent0de3ba4e4e9de7a999022379e815e4d1fb58a7a7 (diff)
downloadnixlib-0d6f6e6d37365187b2ad94f3233b9aa656f573b0.tar
nixlib-0d6f6e6d37365187b2ad94f3233b9aa656f573b0.tar.gz
nixlib-0d6f6e6d37365187b2ad94f3233b9aa656f573b0.tar.bz2
nixlib-0d6f6e6d37365187b2ad94f3233b9aa656f573b0.tar.lz
nixlib-0d6f6e6d37365187b2ad94f3233b9aa656f573b0.tar.xz
nixlib-0d6f6e6d37365187b2ad94f3233b9aa656f573b0.tar.zst
nixlib-0d6f6e6d37365187b2ad94f3233b9aa656f573b0.zip
Wraper with glib_network
Diffstat (limited to 'pkgs/applications/misc/surf')
-rw-r--r--pkgs/applications/misc/surf/default.nix11
1 files changed, 8 insertions, 3 deletions
diff --git a/pkgs/applications/misc/surf/default.nix b/pkgs/applications/misc/surf/default.nix
index 808a77ef0a07..b03135ea1f49 100644
--- a/pkgs/applications/misc/surf/default.nix
+++ b/pkgs/applications/misc/surf/default.nix
@@ -1,4 +1,4 @@
-{stdenv, fetchurl, gtk, webkit, pkgconfig, glib, libsoup, patches ? null}:
+{stdenv, fetchurl, makeWrapper, gtk, webkit, pkgconfig, glib, glib_networking, libsoup, patches ? null}:
 
 stdenv.mkDerivation rec {
   name = "surf-${version}";
@@ -6,10 +6,10 @@ stdenv.mkDerivation rec {
 
   src = fetchurl {
     url = "http://dl.suckless.org/surf/surf-${version}.tar.gz";
-    sha256 = "01b8hq8z2wd7ssym5bypx2b15mrs1lhgkrcgxf700kswxvxcrhgx";
+    sha256 = "fdc1ccfaee5c4f008eeb8fe5f9200d3ad71296e8d7af52bdd6a771f111866805";
   };
 
-  buildInputs = [ gtk webkit pkgconfig glib libsoup ];
+  buildInputs = [ gtk makeWrapper webkit pkgconfig glib libsoup glib_networking ];
 
   # Allow users set their own list of patches
   inherit patches;
@@ -19,6 +19,11 @@ stdenv.mkDerivation rec {
 # `-lX11' to make sure libX11's store path is in the RPATH
   NIX_LDFLAGS = "-lX11";
   preConfigure = [ ''sed -i "s@PREFIX = /usr/local@PREFIX = $out@g" config.mk'' ];
+ installPhase = ''
+    make PREFIX=/ DESTDIR=$out install
+    wrapProgram "$out/bin/surf" --prefix GIO_EXTRA_MODULES : \
+      ${glib_networking}/lib/gio/modules
+  '';
 
   meta = { 
       description = "surf is a simple web browser based on WebKit/GTK+. It is able to display websites and follow links. It supports the XEmbed protocol which makes it possible to embed it in another application. Furthermore, one can point surf to another URI by setting its XProperties.";