98 lines
1.7 KiB
Nix
98 lines
1.7 KiB
Nix
{ lib
|
|
, fetchFromGitHub
|
|
, cmake
|
|
, pkg-config
|
|
, mysql80
|
|
, git
|
|
, boost
|
|
, openssl
|
|
, zlib
|
|
, readline
|
|
, bzip2
|
|
, rsync
|
|
, stdenv
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "azerothcore-wotlk-npcbots";
|
|
version = "unstable";
|
|
|
|
srcs = [
|
|
(fetchFromGitHub {
|
|
owner = "trickerer";
|
|
name = "azerothcore";
|
|
repo = "AzerothCore-wotlk-with-NPCBots";
|
|
rev = "952304c1157eb5039f557f1c7535f001054757c6";
|
|
hash = "sha256-M/jmDHgdo/slf4b18/gLW1dFETIbLI36EiFj+mmf/io=";
|
|
})
|
|
(fetchFromGitHub {
|
|
owner = "azerothcore";
|
|
repo = "mod-ah-bot";
|
|
name = "mod-ah-bot";
|
|
rev = "60d80b8673abb722178d9bd64349d0ff4765de98";
|
|
hash = "sha256-EkQhR64/pAhYDjsSlwRs/4uN3WfbZNbu2czwht2u8x8=";
|
|
})
|
|
];
|
|
|
|
sourceRoot = "azerothcore";
|
|
|
|
postUnpack = ''
|
|
cp -a mod-ah-bot azerothcore/modules/mod-ah-bot
|
|
'';
|
|
|
|
nativeBuildInputs = [
|
|
cmake
|
|
pkg-config
|
|
];
|
|
|
|
buildInputs = [
|
|
rsync
|
|
mysql80
|
|
git
|
|
boost
|
|
openssl
|
|
zlib
|
|
readline
|
|
bzip2
|
|
];
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
cmakeFlags = [
|
|
"-DCMAKE_INSTALL_PREFIX=${placeholder "out"}"
|
|
"-DTOOLS_BUILD=all"
|
|
"-DSCRIPTS=static"
|
|
"-DMODULES=static"
|
|
];
|
|
|
|
cmakeBuildType = "Release";
|
|
|
|
outputs = [ "out" "srcDir" ];
|
|
|
|
#dontPatch = true;
|
|
#dontConfigure = true;
|
|
#dontBuild = true;
|
|
#dontFixup = true;
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
|
|
ls ..
|
|
rsync -a --exclude=build ../ $srcDir
|
|
|
|
mkdir -p $out
|
|
make install
|
|
|
|
runHook postInstall
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Complete Open Source and Modular solution for MMO";
|
|
homepage = "http://www.azerothcore.org/";
|
|
license = licenses.lgpl3;
|
|
platforms = [ "x86_64-linux" ];
|
|
maintainers = with maintainers; [ gaelreyrol ];
|
|
};
|
|
})
|
|
|