2011-08-11 17:33:41 +01:00
|
|
|
{stdenv, fetchurl, gtk, webkit, pkgconfig, glib, libsoup, patches ? null}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "surf-${version}";
|
|
|
|
version="0.4.1";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://dl.suckless.org/surf/surf-${version}.tar.gz";
|
|
|
|
sha256 = "0im5psjw0r8av3zjyy2wqcl6y5ylwnrab5kfcwc23bsbx2irnw4k";
|
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ gtk webkit pkgconfig glib libsoup ];
|
|
|
|
|
|
|
|
# Allow users set their own list of patches
|
|
|
|
inherit patches;
|
|
|
|
|
|
|
|
buildPhase = " make ";
|
|
|
|
|
|
|
|
# `-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'' ];
|
|
|
|
|
|
|
|
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.";
|
|
|
|
homepage = http://surf.suckless.org;
|
|
|
|
license = "MIT";
|
2011-08-20 06:24:19 +01:00
|
|
|
platforms = stdenv.lib.platforms.linux;
|
2011-08-11 17:33:41 +01:00
|
|
|
};
|
|
|
|
}
|