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
53
pkgs/development/libraries/silgraphite/graphite2.nix
Normal file
53
pkgs/development/libraries/silgraphite/graphite2.nix
Normal file
|
|
@ -0,0 +1,53 @@
|
|||
{ lib
|
||||
, stdenv
|
||||
, fetchurl
|
||||
, pkg-config
|
||||
, freetype
|
||||
, cmake
|
||||
, static ? stdenv.hostPlatform.isStatic
|
||||
, libgcc
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
version = "1.3.14";
|
||||
pname = "graphite2";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://github.com/silnrsi/graphite/releases/download/"
|
||||
+ "${version}/graphite2-${version}.tgz";
|
||||
sha256 = "1790ajyhk0ax8xxamnrk176gc9gvhadzy78qia4rd8jzm89ir7gr";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ pkg-config cmake ];
|
||||
buildInputs = [ freetype ]
|
||||
# On aarch64-darwin libgcc won't even build currently, and it doesn't seem needed.
|
||||
++ lib.optionals (with stdenv; !cc.isGNU && !(isDarwin && isAarch64)) [ libgcc ];
|
||||
|
||||
patches = lib.optionals stdenv.isDarwin [ ./macosx.patch ];
|
||||
|
||||
cmakeFlags = lib.optionals static [
|
||||
"-DBUILD_SHARED_LIBS=OFF"
|
||||
];
|
||||
|
||||
# Remove a test that fails to statically link (undefined reference to png and
|
||||
# freetype symbols)
|
||||
postConfigure = lib.optionalString static ''
|
||||
sed -e '/freetype freetype.c/d' -i ../tests/examples/CMakeLists.txt
|
||||
'';
|
||||
|
||||
preCheck = ''
|
||||
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH''${LD_LIBRARY_PATH:+:}$PWD/src/
|
||||
export DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH''${DYLD_LIBRARY_PATH:+:}$PWD/src/
|
||||
'';
|
||||
|
||||
doCheck = true;
|
||||
|
||||
meta = with lib; {
|
||||
description = "An advanced font engine";
|
||||
homepage = "https://graphite.sil.org/";
|
||||
license = licenses.lgpl21;
|
||||
maintainers = [ maintainers.raskin ];
|
||||
mainProgram = "gr2fonttest";
|
||||
platforms = platforms.unix;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue