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
32
pkgs/tools/graphics/pgf/default.nix
Normal file
32
pkgs/tools/graphics/pgf/default.nix
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
{ lib, stdenv, fetchurl, autoconf, automake, libtool, dos2unix, libpgf, freeimage, doxygen }:
|
||||
|
||||
with lib;
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "pgf";
|
||||
version = "6.14.12";
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://sourceforge/libpgf/pgf-console-src-${version}.tar.gz";
|
||||
sha256 = "1vfm12cfq3an3xg0679bcwdmjq2x1bbij1iwsmm60hwmrm3zvab0";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ autoconf automake ];
|
||||
buildInputs = [ libtool dos2unix libpgf freeimage doxygen ];
|
||||
|
||||
patchPhase = ''
|
||||
sed 1i'#include <inttypes.h>' -i src/PGF.cpp
|
||||
sed s/__int64/int64_t/g -i src/PGF.cpp
|
||||
rm include/FreeImage.h include/FreeImagePlus.h
|
||||
'';
|
||||
|
||||
preConfigure = "dos2unix configure.ac; sh autogen.sh";
|
||||
|
||||
# configureFlags = optional static "--enable-static --disable-shared";
|
||||
|
||||
meta = {
|
||||
homepage = "https://www.libpgf.org/";
|
||||
description = "Progressive Graphics Format command line program";
|
||||
license = lib.licenses.lgpl21Plus;
|
||||
platforms = lib.platforms.linux;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue