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
66
pkgs/development/libraries/ftgl/default.nix
Normal file
66
pkgs/development/libraries/ftgl/default.nix
Normal file
|
|
@ -0,0 +1,66 @@
|
|||
{ lib
|
||||
, stdenv
|
||||
, fetchFromGitHub
|
||||
, autoreconfHook
|
||||
, doxygen
|
||||
, freeglut
|
||||
, freetype
|
||||
, GLUT
|
||||
, libGL
|
||||
, libGLU
|
||||
, OpenGL
|
||||
, pkg-config
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "ftgl";
|
||||
version = "2.4.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "frankheckenbach";
|
||||
repo = "ftgl";
|
||||
rev = "v${version}";
|
||||
hash = "sha256-6TDNGoMeBLnucmHRgEDIVWcjlJb7N0sTluqBwRMMWn4=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
autoreconfHook
|
||||
doxygen
|
||||
pkg-config
|
||||
];
|
||||
buildInputs = [
|
||||
freetype
|
||||
] ++ (if stdenv.isDarwin then [
|
||||
OpenGL
|
||||
GLUT
|
||||
] else [
|
||||
libGL
|
||||
libGLU
|
||||
freeglut
|
||||
]);
|
||||
|
||||
configureFlags = [
|
||||
"--with-ft-prefix=${lib.getDev freetype}"
|
||||
];
|
||||
|
||||
enableParallelBuilding = true;
|
||||
|
||||
postInstall = ''
|
||||
install -Dm644 src/FTSize.h -t ${placeholder "out"}/include/FTGL
|
||||
install -Dm644 src/FTFace.h -t ${placeholder "out"}/include/FTGL
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://github.com/frankheckenbach/ftgl";
|
||||
description = "Font rendering library for OpenGL applications";
|
||||
longDescription = ''
|
||||
FTGL is a free cross-platform Open Source C++ library that uses Freetype2
|
||||
to simplify rendering fonts in OpenGL applications. FTGL supports bitmaps,
|
||||
pixmaps, texture maps, outlines, polygon mesh, and extruded polygon
|
||||
rendering modes.
|
||||
'';
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ AndersonTorres ];
|
||||
platforms = platforms.unix;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue