sc-im: 0.4.0 -> 0.5.0
- Bump version to 0.5.0 - Enable support for reading '.xls' and '.xlsx' files. The support for reading Excel files depends on: - libxml2, which was already a build input. - libzip - libxls
This commit is contained in:
parent
645c2189d1
commit
4f531a1d2b
@ -1,23 +1,25 @@
|
|||||||
{ stdenv, fetchFromGitHub, yacc, ncurses, libxml2, pkgconfig }:
|
{ stdenv, fetchFromGitHub, yacc, ncurses, libxml2, libzip, libxls, pkgconfig }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
version = "0.4.0";
|
version = "0.5.0";
|
||||||
name = "sc-im-${version}";
|
name = "sc-im-${version}";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "andmarti1424";
|
owner = "andmarti1424";
|
||||||
repo = "sc-im";
|
repo = "sc-im";
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
sha256 = "1v1cfmfqs5997bqlirp6p7smc3qrinq8dvsi33sk09r33zkzyar0";
|
sha256 = "1vdn9p9srvdksxznrn65pfigwrd7brlq8bac3pjfqsvf8gjnzq61";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [ yacc ncurses libxml2 pkgconfig ];
|
buildInputs = [ yacc ncurses libxml2 libzip libxls pkgconfig ];
|
||||||
|
|
||||||
buildPhase = ''
|
buildPhase = ''
|
||||||
cd src
|
cd src
|
||||||
|
|
||||||
sed -i "s,prefix=/usr,prefix=$out," Makefile
|
sed -e "\|^prefix = /usr/local| s|/usr/local|$out|" \
|
||||||
sed -i "s,-I/usr/include/libxml2,-I$libxml2," Makefile
|
-e "\|^#LDLIBS += -lxlsreader| s|^#|| " \
|
||||||
|
-e "\|^#CFLAGS += -DXLS| s|^#|| " \
|
||||||
|
-i Makefile
|
||||||
|
|
||||||
make
|
make
|
||||||
export DESTDIR=$out
|
export DESTDIR=$out
|
||||||
|
Loading…
x
Reference in New Issue
Block a user