diff options
author | rbasso <rbasso@sharpgeeks.net> | 2017-03-16 12:56:55 +0900 |
---|---|---|
committer | rbasso <rbasso@sharpgeeks.net> | 2017-03-16 20:45:00 +0900 |
commit | 4f531a1d2baf41bdee13d65d6479315ce18a3818 (patch) | |
tree | d46b2ecb497f67be526b13aefb9f1419b829a2d3 /pkgs/applications/misc/sc-im | |
parent | 645c2189d14ee95d22efb08e42a2bb3ca7e74a04 (diff) |
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
Diffstat (limited to 'pkgs/applications/misc/sc-im')
-rw-r--r-- | pkgs/applications/misc/sc-im/default.nix | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/pkgs/applications/misc/sc-im/default.nix b/pkgs/applications/misc/sc-im/default.nix index 75d08ec818838..6d9e1c9fcf23c 100644 --- a/pkgs/applications/misc/sc-im/default.nix +++ b/pkgs/applications/misc/sc-im/default.nix @@ -1,23 +1,25 @@ -{ stdenv, fetchFromGitHub, yacc, ncurses, libxml2, pkgconfig }: +{ stdenv, fetchFromGitHub, yacc, ncurses, libxml2, libzip, libxls, pkgconfig }: stdenv.mkDerivation rec { - version = "0.4.0"; + version = "0.5.0"; name = "sc-im-${version}"; src = fetchFromGitHub { owner = "andmarti1424"; repo = "sc-im"; rev = "v${version}"; - sha256 = "1v1cfmfqs5997bqlirp6p7smc3qrinq8dvsi33sk09r33zkzyar0"; + sha256 = "1vdn9p9srvdksxznrn65pfigwrd7brlq8bac3pjfqsvf8gjnzq61"; }; - buildInputs = [ yacc ncurses libxml2 pkgconfig ]; + buildInputs = [ yacc ncurses libxml2 libzip libxls pkgconfig ]; buildPhase = '' cd src - sed -i "s,prefix=/usr,prefix=$out," Makefile - sed -i "s,-I/usr/include/libxml2,-I$libxml2," Makefile + sed -e "\|^prefix = /usr/local| s|/usr/local|$out|" \ + -e "\|^#LDLIBS += -lxlsreader| s|^#|| " \ + -e "\|^#CFLAGS += -DXLS| s|^#|| " \ + -i Makefile make export DESTDIR=$out |