about summary refs log tree commit diff
path: root/pkgs/applications/networking/browsers/links2
diff options
context:
space:
mode:
authorLluís Batlle i Rossell <viric@vicerveza.homeunix.net>2010-11-29 18:03:03 +0000
committerLluís Batlle i Rossell <viric@vicerveza.homeunix.net>2010-11-29 18:03:03 +0000
commitebe1ebaba8c0baa1db9691a8c97acf0f7a1fbe89 (patch)
tree4f364946e451376b49ea2bcd9b94ad9f2a1a8781 /pkgs/applications/networking/browsers/links2
parentfca73ee251d58abbe41d22c50836f45516cd345a (diff)
downloadnixlib-ebe1ebaba8c0baa1db9691a8c97acf0f7a1fbe89.tar
nixlib-ebe1ebaba8c0baa1db9691a8c97acf0f7a1fbe89.tar.gz
nixlib-ebe1ebaba8c0baa1db9691a8c97acf0f7a1fbe89.tar.bz2
nixlib-ebe1ebaba8c0baa1db9691a8c97acf0f7a1fbe89.tar.lz
nixlib-ebe1ebaba8c0baa1db9691a8c97acf0f7a1fbe89.tar.xz
nixlib-ebe1ebaba8c0baa1db9691a8c97acf0f7a1fbe89.tar.zst
nixlib-ebe1ebaba8c0baa1db9691a8c97acf0f7a1fbe89.zip
Adding a stdenv version of links2, to be able to cross-build it. This can be removed once
builderDefs can be made to support the stdenvCross adapter


svn path=/nixpkgs/branches/stdenv-updates/; revision=24927
Diffstat (limited to 'pkgs/applications/networking/browsers/links2')
-rw-r--r--pkgs/applications/networking/browsers/links2/stdenv.nix41
1 files changed, 41 insertions, 0 deletions
diff --git a/pkgs/applications/networking/browsers/links2/stdenv.nix b/pkgs/applications/networking/browsers/links2/stdenv.nix
new file mode 100644
index 000000000000..923d0aff0f5f
--- /dev/null
+++ b/pkgs/applications/networking/browsers/links2/stdenv.nix
@@ -0,0 +1,41 @@
+{ stdenv, fetchurl, libpng, libjpeg, bzip2, zlib, libtiff,  gpm, openssl, pkgconfig, directfb 
+, enableX11 ? true, libX11, libXau, xproto, libXt }:
+
+let
+  version="2.2";
+  name="links2-2.2";
+  hash="188y37rw4s9brl55ncc12q1b45w0caxcnsq1gqyby9byw1sawnq9";
+  url="http://links.twibright.com/download/links-${version}.tar.gz";
+  advertisedUrl="http://links.twibright.com/download/links-2.2.tar.gz";
+in
+
+stdenv.mkDerivation {
+  inherit name;
+
+  src = fetchurl {
+    inherit url;
+    sha256 = hash;
+  };
+
+  buildInputs = [ libpng libjpeg bzip2 zlib libtiff  gpm openssl pkgconfig directfb ]
+    ++ stdenv.lib.optionals enableX11 [ libX11 libXau xproto libXt ];
+
+  configureFlags = [
+    "--enable-graphics"
+    "--with-ssl"
+    "--with-fb"
+    ] ++ stdenv.lib.optional enableX11 "--with-x";
+
+  crossAttrs = {
+    preConfigure = ''
+      export CC=$crossConfig-gcc
+    '';
+  };
+
+  meta = {
+    description = "A small browser with some graphics support";
+    maintainers = [
+      stdenv.lib.maintainers.viric
+    ];
+  };
+}