nixpkgs/pkgs/development/libraries/libticonv/default.nix
Reno Dakota 64efe2b912
libticonv: link with libiconv
the darwin sdk rework removed the libiconv hook which adds -liconv so
add explicitly to work around broken autoconf libiconv detection
2024-10-26 12:23:57 +00:00

39 lines
846 B
Nix

{ stdenv
, lib
, fetchurl
, pkg-config
, autoreconfHook
, glib
}:
stdenv.mkDerivation rec {
pname = "libticonv";
version = "1.1.5";
src = fetchurl {
url = "mirror://sourceforge/tilp/${pname}-${version}.tar.bz2";
sha256 = "0y080v12bm81wgjm6fnw7q0yg7scphm8hhrls9njcszj7fkscv9i";
};
nativeBuildInputs = [
autoreconfHook
pkg-config
];
buildInputs = [
glib
];
configureFlags = [
"--enable-iconv"
] ++ lib.optional stdenv.hostPlatform.isDarwin "LDFLAGS=-liconv";
meta = with lib; {
changelog = "http://lpg.ticalc.org/prj_tilp/news.html";
description = "This library is part of the TiLP framework";
homepage = "http://lpg.ticalc.org/prj_tilp/";
license = licenses.gpl2Plus;
maintainers = with maintainers; [ siraben luc65r ];
platforms = with platforms; linux ++ darwin;
};
}