fix: nix flake (#101)

* fix: unbroke import paths in EnchantmentMenu.cpp

* fix: patch nix flakes for new 4JLibs

* style: format nix flake

* refactor(nix): rely on build-linux.sh functions for nix builds

* fix(nix): patch dev shell for build-linux.sh

* feat(nix): derive package version from network version
This commit is contained in:
Riley M.
2026-05-21 19:49:56 +03:00
committed by GitHub
parent d55a38eb84
commit a2f200fd98
4 changed files with 188 additions and 176 deletions
+20 -13
View File
@@ -1,9 +1,9 @@
#!/usr/bin/env bash
set -euo pipefail
VERSION="0.0.0" # man we're using nightly :sob:
SOURCE_DIR="${1:-.}"
SOURCE_DIR="${SOURCE_DIR:-${1:-.}}"
BUILD_CI="${BUILD_CI:-0}"
BUILD_TYPE="${2:-Release}"
BUILD_TYPE="${BUILD_TYPE:-${2:-Release}}"
XWIN_CACHE="${XWIN_CACHE:-$PWD/.xwin}"
INSTALL_DIR="${INSTALL_PREFIX:-$HOME/.local/share/neoLegacy}"
RED='\033[0;31m'
@@ -263,15 +263,22 @@ LAUNCHER
chmod +x "$INSTALL_DIR/minecraft-lce-fourkit"
}
BUILD_DIR="$SOURCE_DIR/build/windows64-clang"
mkdir -p "$BUILD_DIR"
info "LegacyEvolved LCE v$VERSION build script"
info "Source: $SOURCE_DIR | Type: $BUILD_TYPE"
echo ""
check_deps
fetch_winsdk
patch_winsdk_symlinks
do_cmake_configure
do_build
do_install
main() {
BUILD_DIR="$SOURCE_DIR/build/windows64-clang"
mkdir -p "$BUILD_DIR"
info "LegacyEvolved LCE v$VERSION build script"
info "Source: $SOURCE_DIR | Type: $BUILD_TYPE"
echo ""
check_deps
fetch_winsdk
patch_winsdk_symlinks
do_cmake_configure
do_build
do_install
}
# Do not run main when sourced (required for flake.nix)
if [[ "${BASH_SOURCE[0]}" == "${0}" ]]; then
main "$@"
fi