sc-im: add XLSX export support

This commit is contained in:
Robert Schütz 2021-04-22 15:49:26 +02:00
parent c2bd8ce862
commit 22e898e946

View File

@ -1,12 +1,14 @@
{ lib { lib
, stdenv , stdenv
, fetchFromGitHub , fetchFromGitHub
, fetchpatch
, makeWrapper , makeWrapper
, pkg-config , pkg-config
, which , which
, bison , bison
, gnuplot , gnuplot
, libxls , libxls
, libxlsxwriter
, libxml2 , libxml2
, libzip , libzip
, ncurses , ncurses
@ -25,6 +27,18 @@ stdenv.mkDerivation rec {
sourceRoot = "${src.name}/src"; sourceRoot = "${src.name}/src";
patches = [
# libxls and libxlsxwriter are not found without the patch
# https://github.com/andmarti1424/sc-im/pull/542
(fetchpatch {
name = "use-pkg-config-for-libxls-and-libxlsxwriter.patch";
url = "https://github.com/andmarti1424/sc-im/commit/b62dc25eb808e18a8ab7ee7d8eb290e34efeb075.patch";
sha256 = "1yn32ps74ngzg3rbkqf8dn0g19jv4xhxrfgx9agnywf0x8gbwjh3";
})
];
patchFlags = [ "-p2" ];
nativeBuildInputs = [ nativeBuildInputs = [
makeWrapper makeWrapper
pkg-config pkg-config
@ -35,6 +49,7 @@ stdenv.mkDerivation rec {
buildInputs = [ buildInputs = [
gnuplot gnuplot
libxls libxls
libxlsxwriter
libxml2 libxml2
libzip libzip
ncurses ncurses