diff options
author | Evgeny Egorochkin <phreedom.stdin@gmail.com> | 2010-12-15 02:19:59 +0000 |
---|---|---|
committer | Evgeny Egorochkin <phreedom.stdin@gmail.com> | 2010-12-15 02:19:59 +0000 |
commit | 77eb09e9cb7c2c6e248723613cfc5a75e9d8a6db (patch) | |
tree | 190f66fcf9d24d55a6bffcd67dcdbf0a5acc82ab /pkgs/servers/games | |
parent | da5fd5c100b05a46e840713679c93c8e29ef4cd9 (diff) | |
download | nixlib-77eb09e9cb7c2c6e248723613cfc5a75e9d8a6db.tar nixlib-77eb09e9cb7c2c6e248723613cfc5a75e9d8a6db.tar.gz nixlib-77eb09e9cb7c2c6e248723613cfc5a75e9d8a6db.tar.bz2 nixlib-77eb09e9cb7c2c6e248723613cfc5a75e9d8a6db.tar.lz nixlib-77eb09e9cb7c2c6e248723613cfc5a75e9d8a6db.tar.xz nixlib-77eb09e9cb7c2c6e248723613cfc5a75e9d8a6db.tar.zst nixlib-77eb09e9cb7c2c6e248723613cfc5a75e9d8a6db.zip |
Ghost One: packaged
svn path=/nixpkgs/trunk/; revision=25137
Diffstat (limited to 'pkgs/servers/games')
-rw-r--r-- | pkgs/servers/games/ghost-one/default.nix | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/pkgs/servers/games/ghost-one/default.nix b/pkgs/servers/games/ghost-one/default.nix new file mode 100644 index 000000000000..2fd9a45dfc0e --- /dev/null +++ b/pkgs/servers/games/ghost-one/default.nix @@ -0,0 +1,53 @@ +{ stdenv, fetchurl, unzip, gmp, zlib, bzip2, boost, mysql }: +stdenv.mkDerivation rec { + + name = "ghost-one-${version}"; + version = "1.7.265"; + + src = fetchurl { + url = "http://www.maxdevlon.com/ghost/ghostone${version}.zip"; + sha256 = "1sm2ca3lcdr4vjg7v94d8zhqz8cdp44rg8yinzzwkgsr0hj74fv2"; + }; + + buildInputs = [ unzip gmp zlib bzip2 boost mysql ]; + + patchPhase = '' + substituteInPlace ghost/Makefile --replace "/usr/local/lib/mysql" "${mysql}/lib/mysql" + ''; + + buildPhase = '' + cd bncsutil/src/bncsutil + make + cd ../../../StormLib/stormlib/ + make + ensureDir $out/lib + cd ../.. +# cp bncsutil/src/bncsutil/libbncutil.so $out/lib +# cp StormLib/stormlib/libStorm.so $out/lib + cd ghost + make + cd .. + ''; + + installPhase = '' + ensureDir $out/lib + cp bncsutil/src/bncsutil/libbncsutil.so $out/lib + cp StormLib/stormlib/libStorm.so $out/lib + + ensureDir $out/bin + cp ghost/ghost++ $out/bin + + ensureDir $out/share/ghost-one/languages + cp -r mapcfgs $out/share/ghost-one + cp Languages/*.cfg $out/share/ghost-one/languages + cp language.cfg $out/share/ghost-one/languages/English.cfg + cp ip-to-country.csv $out/share/ghost-one/ + ''; + + meta = with stdenv.lib; { + homepage = http://www.codelain.com/forum/; + description = "A Warcraft III: Reign of Chaos and Warcraft III: The Frozen Throne game hosting bot"; + license = licenses.asl20; + maintainers = [ maintainers.phreedom ]; + }; +} \ No newline at end of file |