at 18.09-beta 36 lines 789 B view raw
1{stdenv, fetchzip, libtommath}: 2 3stdenv.mkDerivation { 4 name = "convertlit-1.8"; 5 6 src = fetchzip { 7 url = http://www.convertlit.com/convertlit18src.zip; 8 sha256 = "182nsin7qscgbw2h92m0zadh3h8q410h5cza6v486yjfvla3dxjx"; 9 stripRoot = false; 10 }; 11 12 buildInputs = [libtommath]; 13 14 hardeningDisable = [ "format" ]; 15 16 buildPhase = '' 17 cd lib 18 make 19 cd ../clit18 20 substituteInPlace Makefile \ 21 --replace ../libtommath-0.30/libtommath.a -ltommath 22 make 23 ''; 24 25 installPhase = '' 26 mkdir -p $out/bin 27 cp clit $out/bin 28 ''; 29 30 meta = { 31 homepage = http://www.convertlit.com/; 32 description = "A tool for converting Microsoft Reader ebooks to more open formats"; 33 license = stdenv.lib.licenses.gpl2; 34 platforms = stdenv.lib.platforms.linux; 35 }; 36}