nixpkgs/pkgs/tools/text/par/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

34 lines
790 B
Nix
Raw Normal View History

{lib, stdenv, fetchurl}:
2016-08-05 04:43:27 +00:00
stdenv.mkDerivation rec {
2019-11-26 04:27:58 +00:00
pname = "par";
version = "1.53.0";
2016-08-05 04:43:27 +00:00
src = fetchurl {
url = "http://www.nicemice.net/par/Par-${version}.tar.gz";
sha256 = "sha256-yAnGIOuCtYlVOsVLmJjI2lUZbSYjOdE8BG8r5ErEeAQ=";
2016-08-05 04:43:27 +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)
'';
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
'';
meta = with lib; {
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
};
}