nixpkgs/pkgs/tools/text/odt2txt/default.nix
volth 46420bbaa3 treewide: name -> pname (easy cases) (#66585)
treewide replacement of

stdenv.mkDerivation rec {
  name = "*-${version}";
  version = "*";

to pname
2019-08-15 13:41:18 +01:00

24 lines
587 B
Nix

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