1{ stdenv, fetchurl, autoreconfHook, unzip }:
2
3stdenv.mkDerivation rec {
4 version = "2.5.0";
5 name = "xlslib-${version}";
6
7 src = fetchurl {
8 url = "mirror://sourceforge/xlslib/xlslib-package-${version}.zip";
9 sha256 = "1wx3jbpkz2rvgs45x6mwawamd1b2llb0vn29b5sr0rfxzx9d1985";
10 };
11
12 nativeBuildInputs = [ unzip autoreconfHook ];
13
14 setSourceRoot = "export sourceRoot=xlslib/xlslib";
15
16 enableParallelBuilding = true;
17
18 meta = with stdenv.lib; {
19 description = "C++/C library to construct Excel .xls files in code";
20 homepage = http://sourceforge.net/projects/xlslib/;
21 license = licenses.bsd2;
22 platforms = platforms.unix;
23 maintainers = with maintainers; [ abbradar ];
24 };
25}