2023-08-10 07:59:29 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchurl
|
|
|
|
, validatePkgConfig
|
|
|
|
, expat
|
|
|
|
, minizip
|
|
|
|
, zlib
|
|
|
|
, libiconv
|
|
|
|
}:
|
2022-09-22 12:36:57 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "freexl";
|
2023-08-10 07:59:29 +00:00
|
|
|
version = "2.0.0";
|
2022-09-22 12:36:57 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://www.gaia-gis.it/gaia-sins/freexl-${version}.tar.gz";
|
2023-08-10 07:59:29 +00:00
|
|
|
hash = "sha256-F2cF8d5Yq3we679cbeRqt2/Ni4VlCNvSj1ZI98bhp/A=";
|
2022-09-22 12:36:57 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ validatePkgConfig ];
|
|
|
|
|
2023-08-10 07:59:29 +00:00
|
|
|
buildInputs = [
|
|
|
|
expat
|
|
|
|
minizip
|
|
|
|
zlib
|
2024-09-26 11:04:55 +00:00
|
|
|
] ++ lib.optional stdenv.hostPlatform.isDarwin libiconv;
|
2022-09-22 12:36:57 +00:00
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
|
|
|
|
meta = with lib; {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Library to extract valid data from within an Excel (.xls) spreadsheet";
|
2022-09-22 12:36:57 +00:00
|
|
|
homepage = "https://www.gaia-gis.it/fossil/freexl";
|
|
|
|
# They allow any of these
|
|
|
|
license = with licenses; [ gpl2Plus lgpl21Plus mpl11 ];
|
|
|
|
platforms = platforms.unix;
|
|
|
|
maintainers = with maintainers; [ sikmir ];
|
|
|
|
};
|
|
|
|
}
|