3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/tools/text/odt2txt/default.nix
Daniel Sandbecker 876b6406d3
odt2txt: 0.4 -> 0.5
Version 0.4 failed to build for me on MacOS 10.12.6 (16G1314). (Might be related to the removed libiconv-hacks.) Version 0.5 as specified builds cleanly. Not tested on any other platforms though.

Also 0.4 is from 2008 while 0.5 was released in 2014.

The old homepage now redirects to the GitHub repo.
2018-06-07 23:20:09 +02:00

24 lines
597 B
Nix

{ stdenv, fetchurl, zlib, libiconv }:
stdenv.mkDerivation rec {
name = "odt2txt-${version}";
version = "0.5";
src = fetchurl {
url = "${meta.homepage}/archive/v${version}.tar.gz";
sha256 = "23a889109ca9087a719c638758f14cc3b867a5dcf30a6c90bf6a0985073556dd";
};
configurePhase="export makeFlags=\"DESTDIR=$out\"";
buildInputs = [ zlib libiconv ];
meta = {
description = "Simple .odt to .txt converter";
homepage = https://github.com/dstosberg/odt2txt;
platforms = stdenv.lib.platforms.all;
license = stdenv.lib.licenses.gpl2;
maintainers = [ ];
};
}