linux_xanmod: 5.11.14 -> 5.11.15
[NixPkgs.git] / pkgs / tools / text / convertlit / default.nix
blob18dc01c01d02991122e418be7536931324970159
1 {lib, stdenv, fetchzip, libtommath}:
3 stdenv.mkDerivation {
4   name = "convertlit-1.8";
6   src = fetchzip {
7     url = "http://www.convertlit.com/convertlit18src.zip";
8     sha256 = "182nsin7qscgbw2h92m0zadh3h8q410h5cza6v486yjfvla3dxjx";
9     stripRoot = false;
10   };
12   buildInputs = [libtommath];
14   hardeningDisable = [ "format" ];
16   buildPhase = ''
17     cd lib
18     make
19     cd ../clit18
20     substituteInPlace Makefile \
21       --replace ../libtommath-0.30/libtommath.a -ltommath
22     make
23   '';
25   installPhase = ''
26     mkdir -p $out/bin
27     cp clit $out/bin
28   '';
30   meta = {
31     homepage = "http://www.convertlit.com/";
32     description = "A tool for converting Microsoft Reader ebooks to more open formats";
33     license = lib.licenses.gpl2;
34     platforms = lib.platforms.linux;
35   };