2008-08-12 19:57:35 +00:00
|
|
|
{stdenv, fetchurl, unzip, libtommath}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "convertlit-1.8";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = http://www.convertlit.com/convertlit18src.zip;
|
|
|
|
sha256 = "1fjpwncyc2r3ipav7c9m7jxy6i7mphbyqj3gsm046425p7sqa2np";
|
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [unzip libtommath];
|
|
|
|
|
2008-08-27 14:56:59 +00:00
|
|
|
sourceRoot = ".";
|
2008-08-12 19:57:35 +00:00
|
|
|
|
|
|
|
buildPhase = ''
|
|
|
|
cd lib
|
|
|
|
make
|
|
|
|
cd ../clit18
|
|
|
|
substituteInPlace Makefile --replace ../libtommath-0.30/libtommath.a -ltommath
|
|
|
|
make
|
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
2012-01-18 20:16:00 +00:00
|
|
|
mkdir -p $out/bin
|
2008-08-12 19:57:35 +00:00
|
|
|
cp clit $out/bin
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = http://www.convertlit.com/;
|
|
|
|
description = "A tool for converting Microsoft Reader ebooks to more open formats";
|
2014-06-19 04:19:00 +00:00
|
|
|
license = stdenv.lib.licenses.gpl2;
|
2008-08-12 19:57:35 +00:00
|
|
|
};
|
|
|
|
}
|