about summary refs log tree commit diff
path: root/nixpkgs/pkgs/tools/text/odt2txt/default.nix
blob: 3f8338d6ae08ca74548b193e93a88b95ce6ce63f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
{ lib, stdenv, fetchurl, zlib, libiconv }:

stdenv.mkDerivation rec {
  pname = "odt2txt";
  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";
    mainProgram = "odt2txt";
    homepage = "https://github.com/dstosberg/odt2txt";
    platforms = lib.platforms.all;
    license = lib.licenses.gpl2;
    maintainers = [ ];
  };
}