2015-03-01 13:37:28 +00:00
|
|
|
{ stdenv, fetchurl, yacc, ncurses, libxml2 }:
|
|
|
|
|
|
|
|
let
|
2016-01-30 15:09:31 +00:00
|
|
|
version = "0.2.1";
|
2015-03-01 13:37:28 +00:00
|
|
|
in
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
|
2016-01-30 15:09:31 +00:00
|
|
|
name = "sc-im-${version}";
|
2015-03-01 13:37:28 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2016-01-22 12:07:46 +00:00
|
|
|
url = "https://github.com/andmarti1424/sc-im/archive/v${version}.tar.gz";
|
2016-01-30 15:09:31 +00:00
|
|
|
sha256 = "08yks8grj5w434r81dy2knzbdhdnkc23r0d9v848mcl706xnjl6j";
|
2015-03-01 13:37:28 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ yacc ncurses libxml2 ];
|
|
|
|
|
|
|
|
buildPhase = ''
|
|
|
|
cd src
|
|
|
|
|
|
|
|
sed "s,prefix=/usr,prefix=$out," Makefile
|
|
|
|
sed "s,-I/usr/include/libxml2,-I$libxml2," Makefile
|
|
|
|
|
|
|
|
make
|
|
|
|
export DESTDIR=$out
|
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
make install prefix=
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
2016-01-30 15:09:31 +00:00
|
|
|
homepage = "https://github.com/andmarti1424/sc-im";
|
|
|
|
description = "SC-IM - Spreadsheet Calculator Improvised - SC fork";
|
|
|
|
license = stdenv.lib.licenses.bsdOriginal;
|
2015-03-01 13:37:28 +00:00
|
|
|
maintainers = [ stdenv.lib.maintainers.matthiasbeyer ];
|
|
|
|
platforms = with stdenv.lib.platforms; linux; # Cannot test others
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|