diff options
author | Jean-Luc Jox <jeanluc.jox@gmail.com> | 2016-08-05 14:43:27 +1000 |
---|---|---|
committer | Moritz Ulrich <moritz@tarn-vedra.de> | 2016-08-11 12:48:41 +0200 |
commit | 526291231b4f57386b841c8ff148546ae1e4ce62 (patch) | |
tree | ae75d90d215f6fb9f0562a09b2ef6a3bb72758dc /pkgs/tools/text/par | |
parent | 53b60c8873e22f7b22918210b0b46c82e595b9d5 (diff) |
par: init at 1.5.2
Issue #17521
Diffstat (limited to 'pkgs/tools/text/par')
-rw-r--r-- | pkgs/tools/text/par/default.nix | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/pkgs/tools/text/par/default.nix b/pkgs/tools/text/par/default.nix new file mode 100644 index 000000000000..c7a686201b0d --- /dev/null +++ b/pkgs/tools/text/par/default.nix @@ -0,0 +1,36 @@ +{stdenv, fetchurl, fetchpatch}: + +stdenv.mkDerivation { + name = "par-1.52"; + + src = fetchurl { + url = http://www.nicemice.net/par/Par152.tar.gz; + sha256 = "33dcdae905f4b4267b4dc1f3efb032d79705ca8d2122e17efdecfd8162067082"; + }; + + patches = [ + # A patch by Jérôme Pouiller that adds support for multibyte + # charsets (like UTF-8), plus Debian packaging. + (fetchpatch { + url = "http://sysmic.org/dl/par/par-1.52-i18n.4.patch"; + sha256 = "0alw44lf511jmr38jnh4j0mpp7vclgy0grkxzqf7q158vzdb6g23"; + }) + ]; + + buildPhase = ''make -f protoMakefile''; + + installPhase = '' + mkdir -p $out/bin + cp par $out/bin + + mkdir -p $out/share/man/man1 + cp par.1 $out/share/man/man1 + ''; + + + meta = { + homepage = http://www.nicemice.net/par/; + description = "Paragraph reflow for email"; + platforms = stdenv.lib.platforms.unix; + }; +} |