cegui: 0.8.7 -> unstable-2023-03-18

This commit is contained in:
Weijia Wang 2023-07-20 10:53:13 +03:00
parent 4adde79832
commit 34f9116c58
2 changed files with 45 additions and 13 deletions

View file

@ -1,19 +1,53 @@
{ lib, stdenv, fetchurl, cmake, ogre, freetype, boost, expat, libiconv }:
{ lib
, stdenv
, fetchFromGitHub
, cmake
, ogre
, freetype
, boost
, expat
, darwin
, libiconv
, unstableGitUpdater
}:
stdenv.mkDerivation rec {
stdenv.mkDerivation {
pname = "cegui";
version = "0.8.7";
version = "unstable-2023-03-18";
src = fetchurl {
url = "mirror://sourceforge/crayzedsgui/${pname}-${version}.tar.bz2";
sha256 = "067562s71kfsnbp2zb2bmq8zj3jk96g5a4rcc5qc3n8nfyayhldk";
src = fetchFromGitHub {
owner = "paroj";
repo = "cegui";
rev = "186ce900e293b98f2721c11930248a8de54aa338";
hash = "sha256-RJ4MnxklcuxC+ZYEbfma5RDc2aeJ95LuTwNk+FnEhdo=";
};
nativeBuildInputs = [ cmake ];
buildInputs = [ ogre freetype boost expat ]
++ lib.optionals stdenv.isDarwin [ libiconv ];
strictDeps = true;
cmakeFlags = lib.optional (stdenv.isDarwin && stdenv.isAarch64) "-DCMAKE_OSX_ARCHITECTURES=arm64";
nativeBuildInputs = [
cmake
];
buildInputs = [
ogre
freetype
boost
expat
] ++ lib.optionals stdenv.isDarwin [
darwin.apple_sdk.frameworks.Cocoa
darwin.apple_sdk.frameworks.Foundation
libiconv
];
cmakeFlags = [
"-DCEGUI_OPTION_DEFAULT_IMAGECODEC=OgreRenderer-0"
] ++ lib.optionals (stdenv.hostPlatform.isDarwin) [
"-DCMAKE_OSX_ARCHITECTURES=${stdenv.hostPlatform.darwinArch}"
];
passthru.updateScript = unstableGitUpdater {
branch = "v0";
};
meta = with lib; {
homepage = "http://cegui.org.uk/";

View file

@ -20391,9 +20391,7 @@ with pkgs;
celt_0_7 = callPackage ../development/libraries/celt/0.7.nix { };
celt_0_5_1 = callPackage ../development/libraries/celt/0.5.1.nix { };
cegui = callPackage ../development/libraries/cegui {
ogre = ogre1_10;
};
cegui = callPackage ../development/libraries/cegui { };
certbot = python3.pkgs.toPythonApplication python3.pkgs.certbot;