2022-01-15 12:32:42 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, fetchpatch, autoreconfHook, autoconf-archive }:
|
2014-10-19 16:33:16 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "libxls";
|
2021-01-20 01:52:45 +00:00
|
|
|
version = "1.6.2";
|
2014-10-19 16:33:16 +00:00
|
|
|
|
2022-01-15 12:32:42 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "libxls";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "sha256-vjmYByk+IDBon8xGR1+oNaEQTiJK+IVpDXsG1IyVNoY=";
|
2014-10-19 16:33:16 +00:00
|
|
|
};
|
|
|
|
|
2022-01-15 12:32:42 +00:00
|
|
|
patches = [
|
|
|
|
# Fix cross-compilation
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://github.com/libxls/libxls/commit/007e63c1f5e19bc73292f267c85d7dd14e9ecb38.patch";
|
|
|
|
sha256 = "sha256-PjPHuXth4Yaq9nVfk5MYJMRo5B0R6YA1KEqgwfjF3PM=";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
|
|
|
nativeBuildInputs = [ autoreconfHook autoconf-archive ];
|
2014-10-19 16:33:16 +00:00
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2021-01-21 17:00:13 +00:00
|
|
|
meta = with lib; {
|
2014-10-19 16:33:16 +00:00
|
|
|
description = "Extract Cell Data From Excel xls files";
|
2022-01-15 12:32:42 +00:00
|
|
|
homepage = "https://github.com/libxls/libxls";
|
2014-10-19 16:33:16 +00:00
|
|
|
license = licenses.bsd2;
|
2015-05-14 17:09:10 +00:00
|
|
|
maintainers = with maintainers; [ abbradar ];
|
2022-05-05 00:52:27 +00:00
|
|
|
mainProgram = "xls2csv";
|
|
|
|
platforms = platforms.unix;
|
2023-10-05 22:23:44 +00:00
|
|
|
knownVulnerabilities = [
|
|
|
|
"CVE-2023-38851"
|
|
|
|
"CVE-2023-38852"
|
|
|
|
"CVE-2023-38853"
|
|
|
|
"CVE-2023-38854"
|
|
|
|
"CVE-2023-38855"
|
|
|
|
"CVE-2023-38856"
|
|
|
|
];
|
2014-10-19 16:33:16 +00:00
|
|
|
};
|
|
|
|
}
|