Merge two nix exprs for links2, upgrade to 2.5
svn path=/nixpkgs/trunk/; revision=31962
This commit is contained in:
parent
75262bcbed
commit
2b3fb5a824
@ -1,33 +1,44 @@
|
|||||||
a :
|
{ stdenv, fetchurl
|
||||||
let
|
, gpm, openssl, pkgconfig # Misc.
|
||||||
s = import ./src-for-default.nix;
|
, libpng, libjpeg, libtiff # graphic formats
|
||||||
buildInputs = with a; [
|
, bzip2, zlib, xz # Transfer encodings
|
||||||
libpng libjpeg bzip2 zlib libtiff
|
, enableFB ? true
|
||||||
libX11 libXau xproto gpm
|
, enableDirectFB ? false, directfb
|
||||||
openssl libXt pkgconfig
|
, enableX11 ? true, libX11, libXt, libXau # GUI support
|
||||||
];
|
}:
|
||||||
in
|
|
||||||
rec {
|
|
||||||
src = a.fetchUrlFromSrcInfo s;
|
|
||||||
|
|
||||||
inherit (s) name;
|
stdenv.mkDerivation rec {
|
||||||
inherit buildInputs;
|
version = "2.5";
|
||||||
configureFlags = [
|
name = "links2-${version}";
|
||||||
"--enable-graphics"
|
|
||||||
"--with-ssl"
|
src = fetchurl {
|
||||||
"--with-x"
|
url = "${meta.homepage}/download/links-${version}.tar.bz2";
|
||||||
"--with-fb"
|
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 = {
|
meta = {
|
||||||
|
homepage = http://links.twibright.com/;
|
||||||
description = "A small browser with some graphics support";
|
description = "A small browser with some graphics support";
|
||||||
maintainers = [
|
maintainers = with stdenv.lib.maintainers; [ raskin urkud viric ];
|
||||||
a.lib.maintainers.raskin
|
platforms = stdenv.lib.platforms.linux;
|
||||||
];
|
|
||||||
platforms = with a.lib.platforms;
|
|
||||||
linux;
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -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";
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
@ -1,4 +0,0 @@
|
|||||||
{
|
|
||||||
downloadPage = "http://links.twibright.com/download.php";
|
|
||||||
baseName = "links2";
|
|
||||||
}
|
|
@ -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
|
|
||||||
];
|
|
||||||
};
|
|
||||||
}
|
|
@ -7158,13 +7158,7 @@ let
|
|||||||
ledger = callPackage ../applications/office/ledger/2.6.3.nix { };
|
ledger = callPackage ../applications/office/ledger/2.6.3.nix { };
|
||||||
ledger3 = callPackage ../applications/office/ledger/3.0.nix { };
|
ledger3 = callPackage ../applications/office/ledger/3.0.nix { };
|
||||||
|
|
||||||
links2 = (builderDefsPackage ../applications/networking/browsers/links2) {
|
links2 = callPackage ../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 { };
|
|
||||||
|
|
||||||
linphone = callPackage ../applications/networking/linphone {
|
linphone = callPackage ../applications/networking/linphone {
|
||||||
inherit (gnome) libglade gtk;
|
inherit (gnome) libglade gtk;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user