Skip to content

Commit

Permalink
surf: 0.7 -> 2.0
Browse files Browse the repository at this point in the history
This renders surf-webkit2 obsolete; it is now aliased to surf.
  • Loading branch information
joachifm committed Apr 2, 2017
1 parent 3490c39 commit a775713
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 68 deletions.
36 changes: 15 additions & 21 deletions pkgs/applications/networking/browsers/surf/default.nix
@@ -1,42 +1,36 @@
{stdenv, fetchurl, makeWrapper, gtk2, webkit, pkgconfig, glib, glib_networking, libsoup, gsettings_desktop_schemas, patches ? null}:
{ stdenv, fetchurl
, pkgconfig, wrapGAppsHook
, glib, glib_networking, gsettings_desktop_schemas, gtk, libsoup, webkitgtk
, patches ? null
}:

stdenv.mkDerivation rec {
name = "surf-${version}";
version="0.7";
version = "2.0";

src = fetchurl {
url = "http://dl.suckless.org/surf/surf-${version}.tar.gz";
sha256 = "0jj93izd8fizxfa6ln9w1h9bwki81sz5dhskh5x1rl34zd38aq4m";
sha256 = "07cmajyafljigy10d21kkyvv5jf3hxkx06pz3rwwk3y3c9x4rvps";
};

buildInputs = [ gtk2 makeWrapper webkit gsettings_desktop_schemas pkgconfig glib libsoup ];
nativeBuildInputs = [ pkgconfig wrapGAppsHook ];
buildInputs = [ glib glib_networking gsettings_desktop_schemas gtk libsoup webkitgtk ];

# 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'';
installFlags = [ "PREFIX=/" "DESTDIR=$(out)" ];

preFixup = ''
wrapProgram "$out/bin/surf" \
--prefix GIO_EXTRA_MODULES : ${glib_networking.out}/lib/gio/modules \
--prefix XDG_DATA_DIRS : "$GSETTINGS_SCHEMAS_PATH"
'';

meta = {
description = "Simple web browser";
meta = with stdenv.lib; {
description = "A simple web browser based on WebKit/GTK+";
longDescription = ''
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 = stdenv.lib.licenses.mit;
platforms = stdenv.lib.platforms.linux;
license = licenses.mit;
platforms = webkitgtk.meta.platforms;
maintainers = with maintainers; [ joachifm ];
};
}
42 changes: 0 additions & 42 deletions pkgs/applications/networking/browsers/surf/webkit2.nix

This file was deleted.

1 change: 1 addition & 0 deletions pkgs/top-level/aliases.nix
Expand Up @@ -121,6 +121,7 @@ doNotDisplayTwice rec {
speedtest_cli = speedtest-cli; # added 2015-02-17
sqliteInteractive = sqlite-interactive; # added 2014-12-06
sshfsFuse = sshfs-fuse; # added 2016-09
surf-webkit2 = surf; # added 2017-04-02
system_config_printer = system-config-printer; # added 2016-01-03
telepathy_qt5 = libsForQt5.telepathy; # added 2015-12-19
tftp_hpa = tftp-hpa; # added 2015-04-03
Expand Down
6 changes: 1 addition & 5 deletions pkgs/top-level/all-packages.nix
Expand Up @@ -15561,11 +15561,7 @@ with pkgs;

subunit = callPackage ../development/libraries/subunit { };

surf = callPackage ../applications/networking/browsers/surf {
webkit = webkitgtk2;
};

surf-webkit2 = callPackage ../applications/networking/browsers/surf/webkit2.nix { };
surf = callPackage ../applications/networking/browsers/surf { gtk = gtk2; };

swh_lv2 = callPackage ../applications/audio/swh-lv2 { };

Expand Down

0 comments on commit a775713

Please sign in to comment.