{ fetchurl , lib , stdenv , freetype , libGLU , pkg-config , lsb-release , tree }: stdenv.mkDerivation rec { pname = "ftgl-tecgraf"; version = "3.32"; src = fetchurl { url = "mirror://sourceforge/iup/${version}/Docs%20and%20Sources/ftgl-2.1.5_Sources.tar.gz"; sha256 = "sha256-v9XqBq5qOm2MxAeybOzCMCqsi7hsQhWtsGkUHVNAekw="; }; nativeBuildInputs = [ lsb-release pkg-config ]; buildInputs = [ freetype libGLU ]; makeFlags = [ "NO_DEPEND=Yes" ]; NIX_CFLAGS_COMPILE = '' -fpermissive ''; installPhase = '' runHook preInstall mkdir -p $out/{lib,include} cp -v lib/Linux*/*.so $out/lib/ cp -v lib/Linux*/*.a $out/lib/ || true cp -r include/* $out/include runHook postInstall ''; meta = with lib; { description = "Tecgraf patched FTGL used by CD/IUP"; license = with licenses; mit; maintainers = [ eko5z ]; platforms = with platforms; gnu ++ linux ++ darwin; }; }