mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-21 13:13:33 +00:00
f9fdf2d402
with structuredAttrs lists will be bash arrays which cannot be exported which will be a issue with some patches and some wrappers like cc-wrapper this makes it clearer that NIX_CFLAGS_COMPILE must be a string as lists in env cause a eval failure
64 lines
1.3 KiB
Nix
64 lines
1.3 KiB
Nix
{ lib
|
|
, stdenv
|
|
, fetchhg
|
|
, autoreconfHook
|
|
, fltk
|
|
, libXcursor
|
|
, libXi
|
|
, libXinerama
|
|
, libjpeg
|
|
, libpng
|
|
, mbedtls_2
|
|
, openssl
|
|
, perl
|
|
, pkg-config
|
|
, which
|
|
}:
|
|
|
|
stdenv.mkDerivation {
|
|
pname = "dillo";
|
|
version = "unstable-2021-02-09";
|
|
|
|
src = fetchhg {
|
|
url = "https://hg.sr.ht/~seirdy/dillo-mirror";
|
|
rev = "67b70f024568b505633524be61fcfbde5337849f";
|
|
sha256 = "sha256-lbn5u9oEL0zt9yBhznBS9Dz9/6kSwRDJeNXKEojty1g=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
autoreconfHook
|
|
pkg-config
|
|
which
|
|
];
|
|
|
|
buildInputs = [
|
|
fltk
|
|
libXcursor
|
|
libXi
|
|
libXinerama
|
|
libjpeg
|
|
libpng
|
|
mbedtls_2
|
|
openssl
|
|
perl
|
|
];
|
|
|
|
# Workaround build failure on -fno-common toolchains:
|
|
# ld: main.o:/build/dillo-3.0.5/dpid/dpid.h:64: multiple definition of `sock_set';
|
|
# dpid.o:/build/dillo-3.0.5/dpid/dpid.h:64: first defined here
|
|
env.NIX_CFLAGS_COMPILE = "-fcommon";
|
|
|
|
configureFlags = [ "--enable-ssl=yes" ];
|
|
|
|
meta = with lib; {
|
|
homepage = "https://hg.sr.ht/~seirdy/dillo-mirror";
|
|
description = "A fast graphical web browser with a small footprint";
|
|
longDescription = ''
|
|
Dillo is a small, fast web browser, tailored for older machines.
|
|
'';
|
|
maintainers = [ maintainers.AndersonTorres ];
|
|
platforms = platforms.linux;
|
|
license = licenses.gpl3Plus;
|
|
};
|
|
}
|