nixpkgs/pkgs/development/libraries/libxls/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

43 lines
1.1 KiB
Nix
Raw Normal View History

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 {
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;
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;
maintainers = with maintainers; [ abbradar ];
mainProgram = "xls2csv";
platforms = platforms.unix;
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
};
}