2017-01-03 11:34:23 +00:00
|
|
|
{ stdenv, fetchFromGitHub, yacc, ncurses, libxml2, pkgconfig }:
|
2015-03-01 13:37:28 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2017-01-03 11:34:23 +00:00
|
|
|
version = "0.4.0";
|
2016-01-30 15:09:31 +00:00
|
|
|
name = "sc-im-${version}";
|
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}";
|
2017-01-03 11:34:23 +00:00
|
|
|
sha256 = "1v1cfmfqs5997bqlirp6p7smc3qrinq8dvsi33sk09r33zkzyar0";
|
2015-03-01 13:37:28 +00:00
|
|
|
};
|
|
|
|
|
2017-01-03 11:34:23 +00:00
|
|
|
buildInputs = [ yacc ncurses libxml2 pkgconfig ];
|
2015-03-01 13:37:28 +00:00
|
|
|
|
|
|
|
buildPhase = ''
|
|
|
|
cd src
|
|
|
|
|
2017-01-03 11:34:23 +00:00
|
|
|
sed -i "s,prefix=/usr,prefix=$out," Makefile
|
|
|
|
sed -i "s,-I/usr/include/libxml2,-I$libxml2," Makefile
|
2015-03-01 13:37:28 +00:00
|
|
|
|
|
|
|
make
|
|
|
|
export DESTDIR=$out
|
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
make install prefix=
|
|
|
|
'';
|
|
|
|
|
2016-02-07 13:42:22 +00:00
|
|
|
meta = with stdenv.lib; {
|
2016-01-30 15:09:31 +00:00
|
|
|
homepage = "https://github.com/andmarti1424/sc-im";
|
|
|
|
description = "SC-IM - Spreadsheet Calculator Improvised - SC fork";
|
2016-02-07 13:42:22 +00:00
|
|
|
license = licenses.bsdOriginal;
|
|
|
|
maintainers = [ maintainers.matthiasbeyer ];
|
|
|
|
platforms = platforms.linux; # Cannot test others
|
2015-03-01 13:37:28 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|