mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-26 17:03:01 +00:00
89 lines
2.2 KiB
Nix
89 lines
2.2 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
cmake,
|
|
curl,
|
|
curlpp,
|
|
doctest,
|
|
fetchFromGitHub,
|
|
fetchurl,
|
|
fmt,
|
|
nlohmann_json,
|
|
qt5,
|
|
spdlog,
|
|
substituteAll,
|
|
trompeloeil,
|
|
buildDayZLauncher ? false,
|
|
}:
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "arma3-unix-launcher";
|
|
version = "413";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "muttleyxd";
|
|
repo = "arma3-unix-launcher";
|
|
rev = "2ea62d961522f1542d4c8e669ef5fe856916f9ec";
|
|
hash = "sha256-uym93mYmVj9UxT8RbwdRUyIPrQX7nZTNWUUVjxCQmVU=";
|
|
};
|
|
|
|
patches = [
|
|
# prevent CMake from trying to get libraries on the internet
|
|
(substituteAll {
|
|
src = ./dont_fetch_dependencies.patch;
|
|
argparse_src = fetchFromGitHub {
|
|
owner = "p-ranav";
|
|
repo = "argparse";
|
|
rev = "45664c4e9f05ff287731a9ff8b724d0c89fb6e77";
|
|
sha256 = "sha256-qLD9zD6hbItDn6ZHHWBXrAWhySvqcs40xA5+C/5Fkhw=";
|
|
};
|
|
curlpp_src = curlpp.src;
|
|
doctest_src = doctest;
|
|
fmt_src = fmt;
|
|
nlohmann_json_src = nlohmann_json;
|
|
pugixml_src = fetchFromGitHub {
|
|
owner = "muttleyxd";
|
|
repo = "pugixml";
|
|
rev = "simple-build-for-a3ul";
|
|
sha256 = "sha256-FpREdz6DbhnLDGOuQY9rU17SSd6ngA4WfO0kGHqGJPM=";
|
|
};
|
|
spdlog_src = spdlog;
|
|
steamworkssdk_src = fetchurl {
|
|
url = "https://github.com/julianxhokaxhiu/SteamworksSDKCI/releases/download/1.53/SteamworksSDK-v1.53.0_x64.zip";
|
|
sha256 = "sha256-6PQGaPsaxBg/MHVWw2ynYW6LaNSrE9Rd9Q9ZLKFGPFA=";
|
|
};
|
|
trompeloeil_src = trompeloeil;
|
|
})
|
|
# game won't launch with steam integration anyways, disable it
|
|
./disable_steam_integration.patch
|
|
];
|
|
|
|
nativeBuildInputs = [
|
|
qt5.wrapQtAppsHook
|
|
cmake
|
|
];
|
|
|
|
buildInputs = [
|
|
spdlog
|
|
curlpp.src
|
|
curl
|
|
qt5.qtbase
|
|
qt5.qtsvg
|
|
];
|
|
|
|
cmakeFlags = [ "-Wno-dev" ] ++ lib.optionals buildDayZLauncher [ "-DBUILD_DAYZ_LAUNCHER=ON" ];
|
|
|
|
meta = {
|
|
homepage = "https://github.com/muttleyxd/arma3-unix-launcher/";
|
|
description = "Clean, intuitive Arma 3 + DayZ SA Launcher";
|
|
license = with lib.licenses; [
|
|
# Launcher
|
|
mit
|
|
# Steamworks SDK
|
|
unfree
|
|
];
|
|
maintainers = with lib.maintainers; [ DrymarchonShaun ];
|
|
mainProgram = "arma3-unix-launcher";
|
|
platforms = with lib.platforms; linux ++ darwin;
|
|
};
|
|
})
|