2023-07-15 17:15:38 +00:00
|
|
|
{lib, stdenv, fetchurl}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-07-15 17:15:38 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "par";
|
2023-07-15 17:15:38 +00:00
|
|
|
version = "1.53.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2023-07-15 17:15:38 +00:00
|
|
|
url = "http://www.nicemice.net/par/Par-${version}.tar.gz";
|
|
|
|
sha256 = "sha256-yAnGIOuCtYlVOsVLmJjI2lUZbSYjOdE8BG8r5ErEeAQ=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
makefile = "protoMakefile";
|
|
|
|
preBuild = ''
|
|
|
|
makeFlagsArray+=(CC="${stdenv.cc.targetPrefix}cc -c" LINK1=${stdenv.cc.targetPrefix}cc)
|
|
|
|
'';
|
2020-04-24 23:36:52 +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-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "http://www.nicemice.net/par/";
|
|
|
|
description = "Paragraph reflow for email";
|
|
|
|
platforms = platforms.unix;
|
|
|
|
# See https://fedoraproject.org/wiki/Licensing/Par for license details
|
|
|
|
license = licenses.free;
|
|
|
|
};
|
|
|
|
}
|