1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-22 13:41:26 +00:00

Merge two nix exprs for links2, upgrade to 2.5

svn path=/nixpkgs/trunk/; revision=31962
This commit is contained in:
Yury G. Kudryashov 2012-02-01 22:33:35 +00:00
parent 75262bcbed
commit 2b3fb5a824
5 changed files with 39 additions and 88 deletions

View file

@ -1,33 +1,44 @@
a :
let
s = import ./src-for-default.nix;
buildInputs = with a; [
libpng libjpeg bzip2 zlib libtiff
libX11 libXau xproto gpm
openssl libXt pkgconfig
];
in
rec {
src = a.fetchUrlFromSrcInfo s;
{ stdenv, fetchurl
, gpm, openssl, pkgconfig # Misc.
, libpng, libjpeg, libtiff # graphic formats
, bzip2, zlib, xz # Transfer encodings
, enableFB ? true
, enableDirectFB ? false, directfb
, enableX11 ? true, libX11, libXt, libXau # GUI support
}:
inherit (s) name;
inherit buildInputs;
configureFlags = [
"--enable-graphics"
"--with-ssl"
"--with-x"
"--with-fb"
];
stdenv.mkDerivation rec {
version = "2.5";
name = "links2-${version}";
src = fetchurl {
url = "${meta.homepage}/download/links-${version}.tar.bz2";
sha256 = "1wlmj8s6bxgznh0pnawihyvhffzryciz3lkagcxhf7fp64zz5izm";
};
buildInputs =
[ libpng libjpeg libtiff gpm openssl xz bzip2 zlib ]
++ stdenv.lib.optionals enableX11 [ libX11 libXau libXt ]
++ stdenv.lib.optional enableDirectFB [ directfb ];
buildNativeInputs = [ pkgconfig ];
configureFlags = [ "--with-ssl" ]
++ stdenv.lib.optional (enableX11 || enableFB || enableDirectFB) "--enable-graphics"
++ stdenv.lib.optional enableX11 "--with-x"
++ stdenv.lib.optional enableFB "--with-fb"
++ stdenv.lib.optional enableDirectFB "--with-directfb";
crossAttrs = {
preConfigure = ''
export CC=$crossConfig-gcc
'';
};
/* doConfigure should be removed if not needed */
phaseNames = ["doConfigure" "doMakeInstall"];
meta = {
homepage = http://links.twibright.com/;
description = "A small browser with some graphics support";
maintainers = [
a.lib.maintainers.raskin
];
platforms = with a.lib.platforms;
linux;
maintainers = with stdenv.lib.maintainers; [ raskin urkud viric ];
platforms = stdenv.lib.platforms.linux;
};
}

View file

@ -1,9 +0,0 @@
rec {
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";
}

View file

@ -1,4 +0,0 @@
{
downloadPage = "http://links.twibright.com/download.php";
baseName = "links2";
}

View file

@ -1,41 +0,0 @@
{ 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
];
};
}

View file

@ -7158,13 +7158,7 @@ let
ledger = callPackage ../applications/office/ledger/2.6.3.nix { };
ledger3 = callPackage ../applications/office/ledger/3.0.nix { };
links2 = (builderDefsPackage ../applications/networking/browsers/links2) {
inherit fetchurl stdenv bzip2 zlib libjpeg libpng libtiff
gpm openssl SDL SDL_image SDL_net pkgconfig;
inherit (xlibs) libX11 libXau xproto libXt;
};
links2Stdenv = callPackage ../applications/networking/browsers/links2/stdenv.nix { };
links2 = callPackage ../applications/networking/browsers/links2 { };
linphone = callPackage ../applications/networking/linphone {
inherit (gnome) libglade gtk;