@@ -0,0 +1,42 @@
1+{ stdenv, fetchurl, yacc, ncurses, libxml2 }:
2+
3+let
4+ version = "0.1.8";
5+in
6+stdenv.mkDerivation rec {
7+
8+ name = "scim-${version}";
9+
10+ src = fetchurl {
11+ url = "https://github.com/andmarti1424/scim/archive/v${version}.tar.gz";
12+ sha256 = "0qjixb1hzbdrypbmzwb2iaw5wp57kn7fmm1zpjp4gzjyanrhazs2";
13+ };
14+
15+ buildInputs = [ yacc ncurses libxml2 ];
16+
17+ buildPhase = ''
18+ cd src
19+
20+ sed "s,prefix=/usr,prefix=$out," Makefile
21+ sed "s,-I/usr/include/libxml2,-I$libxml2," Makefile
22+
23+ make
24+ export DESTDIR=$out
25+ '';
26+
27+ installPhase = ''
28+ make install prefix=
29+ '';
30+
31+ meta = {
32+ homepage = "https://github.com/andmarti1424/scim";
33+ description = "SCIM - Spreadsheet Calculator Improvised - SC fork";
34+ license = {
35+ fullName = "SCIM License";
36+ url = "https://github.com/andmarti1424/scim/raw/master/LICENSE";
37+ };
38+ maintainers = [ stdenv.lib.maintainers.matthiasbeyer ];
39+ platforms = with stdenv.lib.platforms; linux; # Cannot test others
40+ };
41+
42+}