Merge branch 'staging-next' into staging
This commit is contained in:
@@ -19,6 +19,7 @@ stdenv.mkDerivation rec {
|
||||
description = "A free, open-source game of ancient warfare -- data files";
|
||||
homepage = "https://play0ad.com/";
|
||||
license = licenses.cc-by-sa-30;
|
||||
maintainers = with maintainers; [ chvp ];
|
||||
platforms = platforms.linux;
|
||||
hydraPlatforms = [];
|
||||
};
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
, pkg-config, spidermonkey_78, boost, icu, libxml2, libpng, libsodium
|
||||
, libjpeg, zlib, curl, libogg, libvorbis, enet, miniupnpc
|
||||
, openal, libGLU, libGL, xorgproto, libX11, libXcursor, nspr, SDL2
|
||||
, gloox, nvidia-texture-tools, zeroad-data
|
||||
, gloox, nvidia-texture-tools
|
||||
, withEditor ? true, wxGTK
|
||||
}:
|
||||
|
||||
@@ -50,6 +50,8 @@ stdenv.mkDerivation rec {
|
||||
"-I${fmt.dev}/include"
|
||||
];
|
||||
|
||||
patches = [ ./rootdir_env.patch ];
|
||||
|
||||
configurePhase = ''
|
||||
# Delete shipped libraries which we don't need.
|
||||
rm -rf libraries/source/{enet,miniupnpc,nvtt,spidermonkey}
|
||||
@@ -62,7 +64,6 @@ stdenv.mkDerivation rec {
|
||||
${lib.optionalString withEditor "--enable-atlas"} \
|
||||
--bindir="$out"/bin \
|
||||
--libdir="$out"/lib/0ad \
|
||||
--datadir="$out"/share/0ad/data \
|
||||
--without-tests \
|
||||
-j $NIX_BUILD_CORES
|
||||
popd
|
||||
@@ -85,11 +86,6 @@ stdenv.mkDerivation rec {
|
||||
# Copy l10n data.
|
||||
install -Dm755 -t $out/share/0ad/data/l10n binaries/data/l10n/*
|
||||
|
||||
# Link in game data from package
|
||||
ln -s ${zeroad-data}/share/0ad/data/config $out/share/0ad/data/config
|
||||
ln -s ${zeroad-data}/share/0ad/data/mods $out/share/0ad/data/mods
|
||||
ln -s ${zeroad-data}/share/0ad/data/tools $out/share/0ad/data/tools
|
||||
|
||||
# Copy libraries.
|
||||
install -Dm644 -t $out/lib/0ad binaries/system/*.so
|
||||
|
||||
@@ -105,6 +101,7 @@ stdenv.mkDerivation rec {
|
||||
gpl2 lgpl21 mit cc-by-sa-30
|
||||
licenses.zlib # otherwise masked by pkgs.zlib
|
||||
];
|
||||
maintainers = with maintainers; [ chvp ];
|
||||
platforms = subtractLists platforms.i686 platforms.linux;
|
||||
};
|
||||
}
|
||||
|
||||
@@ -0,0 +1,39 @@
|
||||
diff --git a/source/ps/GameSetup/Paths.cpp b/source/ps/GameSetup/Paths.cpp
|
||||
index 474364e..bf084b4 100644
|
||||
--- a/source/ps/GameSetup/Paths.cpp
|
||||
+++ b/source/ps/GameSetup/Paths.cpp
|
||||
@@ -155,32 +155,8 @@ Paths::Paths(const CmdLineArgs& args)
|
||||
|
||||
/*static*/ OsPath Paths::Root(const OsPath& argv0)
|
||||
{
|
||||
-#if OS_ANDROID
|
||||
- return OsPath("/sdcard/0ad"); // TODO: this is kind of bogus
|
||||
-#else
|
||||
-
|
||||
- // get full path to executable
|
||||
- OsPath pathname = sys_ExecutablePathname(); // safe, but requires OS-specific implementation
|
||||
- if(pathname.empty()) // failed, use argv[0] instead
|
||||
- {
|
||||
- errno = 0;
|
||||
- pathname = wrealpath(argv0);
|
||||
- if(pathname.empty())
|
||||
- WARN_IF_ERR(StatusFromErrno());
|
||||
- }
|
||||
-
|
||||
- // make sure it's valid
|
||||
- if(!FileExists(pathname))
|
||||
- {
|
||||
- LOGERROR("Cannot find executable (expected at '%s')", pathname.string8());
|
||||
- WARN_IF_ERR(StatusFromErrno());
|
||||
- }
|
||||
-
|
||||
- for(size_t i = 0; i < 2; i++) // remove "system/name.exe"
|
||||
- pathname = pathname.Parent();
|
||||
- return pathname;
|
||||
-
|
||||
-#endif
|
||||
+ UNUSED2(argv0);
|
||||
+ return OsPath(getenv("ZEROAD_ROOTDIR"));
|
||||
}
|
||||
|
||||
/*static*/ OsPath Paths::RootData(const OsPath& argv0)
|
||||
@@ -7,12 +7,12 @@ let
|
||||
self = stdenv.mkDerivation rec {
|
||||
outputs = [ "out" "icons" ];
|
||||
pname = "alephone";
|
||||
version = "1.3.1";
|
||||
version = "1.4";
|
||||
|
||||
src = fetchurl {
|
||||
url = let date = "20200904";
|
||||
url = let date = "20210408";
|
||||
in "https://github.com/Aleph-One-Marathon/alephone/releases/download/release-${date}/AlephOne-${date}.tar.bz2";
|
||||
sha256 = "13ck3mp9qd5pkiq6zwvr744bwvmnqkgj5vpf325sz1mcvnv7l8lh";
|
||||
sha256 = "sha256-tMwATUhUpo8W2oSWxGSZcAHVkj1PWEvUR/rpMZwWCWA=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ pkg-config icoutils ];
|
||||
|
||||
@@ -3,13 +3,13 @@
|
||||
alephone.makeWrapper rec {
|
||||
pname = "marathon-infinity";
|
||||
desktopName = "Marathon-Infinity";
|
||||
version = "20200904";
|
||||
version = "20210408";
|
||||
icon = alephone.icons + "/marathon-infinity.png";
|
||||
|
||||
zip = fetchurl {
|
||||
url =
|
||||
"https://github.com/Aleph-One-Marathon/alephone/releases/download/release-${version}/MarathonInfinity-${version}-Data.zip";
|
||||
sha256 = "1n2zfiqjbakkk9dpnzfndqyvq3aml2kjrr2b1wm8g1n44nbc8clq";
|
||||
sha256 = "sha256-j9iwSrI7cjqnuRQX+qn8sWXQ6E+DQ19l7OzAL9KHcJU=";
|
||||
};
|
||||
|
||||
meta = {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{ lib, buildPythonApplication, fetchFromGitHub
|
||||
, gtk3, wrapGAppsHook, gst_all_1, gobject-introspection
|
||||
, python3Packages, gnome3 }:
|
||||
, python3Packages, gnome }:
|
||||
|
||||
buildPythonApplication {
|
||||
pname = "gscrabble";
|
||||
@@ -19,7 +19,7 @@ buildPythonApplication {
|
||||
|
||||
buildInputs = with gst_all_1; [
|
||||
gst-plugins-base gst-plugins-good gst-plugins-ugly gst-plugins-bad
|
||||
gnome3.adwaita-icon-theme gtk3 gobject-introspection
|
||||
gnome.adwaita-icon-theme gtk3 gobject-introspection
|
||||
];
|
||||
|
||||
propagatedBuildInputs = with python3Packages; [ gst-python pygobject3 ];
|
||||
|
||||
@@ -1,20 +1,24 @@
|
||||
{ lib, stdenv, fetchbzr, intltool
|
||||
{ lib, stdenv, fetchbzr, gettext
|
||||
, gtk2, wrapGAppsHook, autoreconfHook, pkg-config
|
||||
, libmikmod, librsvg, libcanberra-gtk2, hicolor-icon-theme }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "gweled";
|
||||
version = "unstable-2018-02-15";
|
||||
version = "unstable-2021-02-11";
|
||||
|
||||
src = fetchbzr {
|
||||
url = "lp:gweled";
|
||||
rev = "94";
|
||||
sha256 = "01c38y4df5a06wqbsmsn8ysxx7hav9yvw6zdwbc9m5m55z7vmdb8";
|
||||
rev = "108";
|
||||
sha256 = "sha256-rM4dgbYfSrVqZwi+xzKuEtmtjK3HVvqeutmni1vleLo=";
|
||||
};
|
||||
|
||||
doCheck = false;
|
||||
|
||||
nativeBuildInputs = [ wrapGAppsHook intltool autoreconfHook pkg-config ];
|
||||
postPatch = ''
|
||||
substituteInPlace configure.ac --replace "AM_GNU_GETTEXT_VERSION([0.19.8])" "AM_GNU_GETTEXT_VERSION([${gettext.version}])"
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [ wrapGAppsHook gettext autoreconfHook pkg-config ];
|
||||
|
||||
buildInputs = [ gtk2 libmikmod librsvg hicolor-icon-theme libcanberra-gtk2 ];
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{ lib, stdenv, cmake, pkg-config, git, curl, SDL2, xercesc, openal, lua, libvlc
|
||||
, libjpeg, wxGTK, cppunit, ftgl, glew, libogg, libvorbis, buildEnv, libpng
|
||||
, fontconfig, freetype, xorg, makeWrapper, bash, which, gnome3, libGLU, glib
|
||||
, fontconfig, freetype, xorg, makeWrapper, bash, which, gnome, libGLU, glib
|
||||
, fetchFromGitHub
|
||||
}:
|
||||
let
|
||||
@@ -13,7 +13,7 @@ let
|
||||
};
|
||||
path-env = buildEnv {
|
||||
name = "megaglest-path-env";
|
||||
paths = [ bash which gnome3.zenity ];
|
||||
paths = [ bash which gnome.zenity ];
|
||||
};
|
||||
in
|
||||
stdenv.mkDerivation {
|
||||
|
||||
@@ -25,7 +25,7 @@ let
|
||||
lua = pkgs.lua5_1;
|
||||
# It is not necessary to run the game, but it is nicer to be given an error dialog in the case of failure,
|
||||
# rather than having to look to the logs why it is not starting.
|
||||
inherit (pkgs.gnome3) zenity;
|
||||
inherit (pkgs.gnome) zenity;
|
||||
});
|
||||
|
||||
/* Building a set of engines or mods requires some dependencies as well,
|
||||
|
||||
@@ -15,7 +15,7 @@ let
|
||||
lua = pkgs.lua5_1;
|
||||
# It is not necessary to run the game, but it is nicer to be given an error dialog in the case of failure,
|
||||
# rather than having to look to the logs why it is not starting.
|
||||
inherit (pkgs.gnome3) zenity;
|
||||
inherit (pkgs.gnome) zenity;
|
||||
});
|
||||
|
||||
/* Building a set of engines or mods requires some dependencies as well,
|
||||
|
||||
@@ -85,7 +85,7 @@ in buildFHSUserEnv rec {
|
||||
targetPkgs = pkgs: with pkgs; [
|
||||
steamPackages.steam
|
||||
# License agreement
|
||||
gnome3.zenity
|
||||
gnome.zenity
|
||||
] ++ commonTargetPkgs pkgs;
|
||||
|
||||
multiPkgs = pkgs: with pkgs; [
|
||||
|
||||
Reference in New Issue
Block a user