2023-07-12 16:12:15 +00:00
|
|
|
{lib, stdenv, fetchurl}:
|
2016-08-05 04:43:27 +00:00
|
|
|
|
2022-12-20 00:21:50 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2019-11-26 04:27:58 +00:00
|
|
|
pname = "par";
|
2022-12-20 00:21:50 +00:00
|
|
|
version = "1.53.0";
|
2016-08-05 04:43:27 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2022-12-20 00:21:50 +00:00
|
|
|
url = "http://www.nicemice.net/par/Par-${version}.tar.gz";
|
|
|
|
sha256 = "sha256-yAnGIOuCtYlVOsVLmJjI2lUZbSYjOdE8BG8r5ErEeAQ=";
|
2016-08-05 04:43:27 +00:00
|
|
|
};
|
|
|
|
|
2020-11-24 05:00:00 +00:00
|
|
|
makefile = "protoMakefile";
|
|
|
|
preBuild = ''
|
2021-01-13 09:00:45 +00:00
|
|
|
makeFlagsArray+=(CC="${stdenv.cc.targetPrefix}cc -c" LINK1=${stdenv.cc.targetPrefix}cc)
|
2020-11-24 05:00:00 +00:00
|
|
|
'';
|
2016-08-05 04:43:27 +00:00
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin
|
|
|
|
cp par $out/bin
|
|
|
|
|
|
|
|
mkdir -p $out/share/man/man1
|
|
|
|
cp par.1 $out/share/man/man1
|
|
|
|
'';
|
|
|
|
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "http://www.nicemice.net/par/";
|
2016-08-05 04:43:27 +00:00
|
|
|
description = "Paragraph reflow for email";
|
2018-10-10 01:35:12 +00:00
|
|
|
platforms = platforms.unix;
|
|
|
|
# See https://fedoraproject.org/wiki/Licensing/Par for license details
|
|
|
|
license = licenses.free;
|
2016-08-05 04:43:27 +00:00
|
|
|
};
|
|
|
|
}
|