links2: fix darwin build
This commit is contained in:
parent
b167b2862e
commit
3a95d50c08
@ -1,23 +1,23 @@
|
||||
{ lib, stdenv, fetchurl
|
||||
, gpm, openssl, pkg-config, libev # Misc.
|
||||
, libpng, libjpeg, libtiff, librsvg # graphic formats
|
||||
, libpng, libjpeg, libtiff, librsvg, libavif # graphic formats
|
||||
, bzip2, zlib, xz # Transfer encodings
|
||||
, enableFB ? true
|
||||
, enableFB ? (!stdenv.isDarwin)
|
||||
, enableDirectFB ? false, directfb
|
||||
, enableX11 ? true, libX11, libXt, libXau # GUI support
|
||||
, enableX11 ? (!stdenv.isDarwin), libX11, libXt, libXau # GUI support
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
version = "2.29";
|
||||
pname = "links2";
|
||||
|
||||
src = fetchurl {
|
||||
url = "${meta.homepage}/download/links-${version}.tar.bz2";
|
||||
sha256 = "sha256-IqqWwLOOGm+PftnXpBZ6R/w3JGCXdZ72BZ7Pj56teZg=";
|
||||
url = "${finalAttrs.meta.homepage}/download/links-${finalAttrs.version}.tar.bz2";
|
||||
hash = "sha256-IqqWwLOOGm+PftnXpBZ6R/w3JGCXdZ72BZ7Pj56teZg=";
|
||||
};
|
||||
|
||||
buildInputs = with lib;
|
||||
[ libev librsvg libpng libjpeg libtiff openssl xz bzip2 zlib ]
|
||||
[ libev librsvg libpng libjpeg libtiff libavif openssl xz bzip2 zlib ]
|
||||
++ optionals stdenv.isLinux [ gpm ]
|
||||
++ optionals enableX11 [ libX11 libXau libXt ]
|
||||
++ optionals enableDirectFB [ directfb ];
|
||||
@ -30,6 +30,10 @@ stdenv.mkDerivation rec {
|
||||
++ lib.optional enableFB "--with-fb"
|
||||
++ lib.optional enableDirectFB "--with-directfb";
|
||||
|
||||
env = lib.optionalAttrs stdenv.cc.isClang {
|
||||
NIX_CFLAGS_COMPILE = "-Wno-error=implicit-int";
|
||||
};
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "http://links.twibright.com/";
|
||||
description = "A small browser with some graphics support";
|
||||
@ -38,4 +42,4 @@ stdenv.mkDerivation rec {
|
||||
license = licenses.gpl2Plus;
|
||||
platforms = platforms.unix;
|
||||
};
|
||||
}
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user