2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, yacc, ncurses, libxml2, libzip, libxls, pkgconfig }:
|
2015-03-01 13:37:28 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2018-02-21 13:16:13 +00:00
|
|
|
version = "0.7.0";
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "sc-im";
|
2015-03-01 13:37:28 +00:00
|
|
|
|
2016-02-07 13:42:22 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "andmarti1424";
|
|
|
|
repo = "sc-im";
|
|
|
|
rev = "v${version}";
|
2018-02-21 13:16:13 +00:00
|
|
|
sha256 = "0xi0n9qzby012y2j7hg4fgcwyly698sfi4i9gkvy0q682jihprbk";
|
2015-03-01 13:37:28 +00:00
|
|
|
};
|
|
|
|
|
2017-09-05 21:26:13 +00:00
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
|
|
|
buildInputs = [ yacc ncurses libxml2 libzip libxls ];
|
2015-03-01 13:37:28 +00:00
|
|
|
|
|
|
|
buildPhase = ''
|
|
|
|
cd src
|
|
|
|
|
2018-02-21 13:16:13 +00:00
|
|
|
sed 's/LDLIBS += -lm/& -lncurses/' -i Makefile
|
|
|
|
|
2017-03-16 03:56:55 +00:00
|
|
|
sed -e "\|^prefix = /usr/local| s|/usr/local|$out|" \
|
|
|
|
-e "\|^#LDLIBS += -lxlsreader| s|^#|| " \
|
|
|
|
-e "\|^#CFLAGS += -DXLS| s|^#|| " \
|
|
|
|
-i Makefile
|
2015-03-01 13:37:28 +00:00
|
|
|
|
|
|
|
make
|
|
|
|
export DESTDIR=$out
|
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
make install prefix=
|
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/andmarti1424/sc-im";
|
2016-01-30 15:09:31 +00:00
|
|
|
description = "SC-IM - Spreadsheet Calculator Improvised - SC fork";
|
2016-02-07 13:42:22 +00:00
|
|
|
license = licenses.bsdOriginal;
|
2018-04-06 08:57:19 +00:00
|
|
|
maintainers = [ ];
|
2018-05-23 15:49:02 +00:00
|
|
|
platforms = platforms.unix;
|
2015-03-01 13:37:28 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|