uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
42
pkgs/tools/text/par/default.nix
Normal file
42
pkgs/tools/text/par/default.nix
Normal file
|
|
@ -0,0 +1,42 @@
|
|||
{lib, stdenv, fetchurl, fetchpatch}:
|
||||
|
||||
stdenv.mkDerivation {
|
||||
pname = "par";
|
||||
version = "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";
|
||||
})
|
||||
];
|
||||
|
||||
makefile = "protoMakefile";
|
||||
preBuild = ''
|
||||
makeFlagsArray+=(CC="${stdenv.cc.targetPrefix}cc -c" LINK1=${stdenv.cc.targetPrefix}cc)
|
||||
'';
|
||||
|
||||
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/";
|
||||
description = "Paragraph reflow for email";
|
||||
platforms = platforms.unix;
|
||||
# See https://fedoraproject.org/wiki/Licensing/Par for license details
|
||||
license = licenses.free;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue