mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-25 15:13:46 +00:00
4f531a1d2b
- 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
41 lines
1.0 KiB
Nix
41 lines
1.0 KiB
Nix
{ stdenv, fetchFromGitHub, yacc, ncurses, libxml2, libzip, libxls, pkgconfig }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
version = "0.5.0";
|
|
name = "sc-im-${version}";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "andmarti1424";
|
|
repo = "sc-im";
|
|
rev = "v${version}";
|
|
sha256 = "1vdn9p9srvdksxznrn65pfigwrd7brlq8bac3pjfqsvf8gjnzq61";
|
|
};
|
|
|
|
buildInputs = [ yacc ncurses libxml2 libzip libxls pkgconfig ];
|
|
|
|
buildPhase = ''
|
|
cd src
|
|
|
|
sed -e "\|^prefix = /usr/local| s|/usr/local|$out|" \
|
|
-e "\|^#LDLIBS += -lxlsreader| s|^#|| " \
|
|
-e "\|^#CFLAGS += -DXLS| s|^#|| " \
|
|
-i Makefile
|
|
|
|
make
|
|
export DESTDIR=$out
|
|
'';
|
|
|
|
installPhase = ''
|
|
make install prefix=
|
|
'';
|
|
|
|
meta = with stdenv.lib; {
|
|
homepage = "https://github.com/andmarti1424/sc-im";
|
|
description = "SC-IM - Spreadsheet Calculator Improvised - SC fork";
|
|
license = licenses.bsdOriginal;
|
|
maintainers = [ maintainers.matthiasbeyer ];
|
|
platforms = platforms.linux; # Cannot test others
|
|
};
|
|
|
|
}
|