nixpkgs/pkgs/tools/games/ukmm/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

89 lines
2.2 KiB
Nix
Raw Normal View History

2023-04-18 05:38:48 +00:00
{ lib
2024-08-07 22:18:05 +00:00
, stdenv
2023-04-18 05:38:48 +00:00
, rustPlatform
, fetchFromGitHub
, cmake
, pkg-config
, wrapGAppsHook3
2024-04-21 05:28:50 +00:00
, libglvnd
, libxkbcommon
2024-07-29 13:35:44 +00:00
, openssl
2023-05-24 17:16:00 +00:00
, nix-update-script
2023-04-18 05:38:48 +00:00
}:
rustPlatform.buildRustPackage rec {
pname = "ukmm";
2024-08-30 06:14:47 +00:00
version = "0.15.0";
2023-04-18 05:38:48 +00:00
src = fetchFromGitHub {
owner = "NiceneNerd";
2024-07-29 13:35:44 +00:00
repo = "ukmm";
2024-04-21 05:28:50 +00:00
rev = "refs/tags/v${version}";
2024-08-30 06:14:47 +00:00
hash = "sha256-NZN+T2N+N+oxrjBRvVbRWbB2KY5im9SN7gPHzfvovl8=";
2023-04-18 05:38:48 +00:00
};
cargoLock = {
2023-05-24 16:57:51 +00:00
lockFile = ./Cargo.lock;
outputHashes = {
2024-07-29 13:35:44 +00:00
"egui-aesthetix-0.2.4" = "sha256-6Nt+nx1pAkuehXINRLp8xgiXmq1PzWgtu/hVbcDm5iA=";
2023-05-24 16:57:51 +00:00
"junction-0.2.0" = "sha256-6+pPp5wG1NoIj16Z+OvO4Pvy0jnQibn/A9cTaHAEVq4=";
"msbt-0.1.1" = "sha256-PtBs60xgYrwS7yPnRzXpExwYUD3azIaqObRnnJEL5dE=";
2024-08-30 06:14:47 +00:00
"msyt-1.2.1" = "sha256-aw5whCoQBhO0u9Fx2rTO1sRuPdGnAAlmPWv5q8CbQcI=";
2023-05-24 16:57:51 +00:00
};
2023-04-18 05:38:48 +00:00
};
nativeBuildInputs = [
cmake
pkg-config
wrapGAppsHook3
2023-04-18 05:38:48 +00:00
];
buildInputs = [
libglvnd
libxkbcommon
2024-07-29 13:35:44 +00:00
openssl
];
# Force linking to libEGL, which is always dlopen()ed, and to
# libwayland-client & libxkbcommon, which is dlopen()ed based on the
# winit backend.
RUSTFLAGS = map (a: "-C link-arg=${a}") [
"-Wl,--push-state,--no-as-needed"
"-lEGL"
"-lwayland-client"
"-lxkbcommon"
"-Wl,--pop-state"
];
2023-04-18 05:38:48 +00:00
cargoTestFlags = [
"--all"
];
checkFlags = [
# Requires a game dump of Breath of the Wild
"--skip=gui::tasks::tests::remerge"
"--skip=pack::tests::pack_mod"
"--skip=project::tests::project_from_mod"
"--skip=tests::read_meta"
"--skip=unpack::tests::read_mod"
"--skip=unpack::tests::unpack_mod"
"--skip=unpack::tests::unzip_mod"
# Requires Clear Camera mod
"--skip=bnp::test_convert"
];
2023-05-24 17:16:00 +00:00
passthru.updateScript = nix-update-script { };
2023-04-18 05:38:48 +00:00
meta = with lib; {
description = "New mod manager for The Legend of Zelda: Breath of the Wild";
homepage = "https://github.com/NiceneNerd/ukmm";
changelog = "https://github.com/NiceneNerd/ukmm/blob/${src.rev}/CHANGELOG.md";
license = licenses.gpl3Plus;
maintainers = with maintainers; [ kira-bruneau ];
platforms = platforms.linux;
2024-08-07 22:18:05 +00:00
broken = stdenv.hostPlatform.isLinux && stdenv.hostPlatform.isAarch64;
2024-04-21 05:28:50 +00:00
mainProgram = "ukmm";
2023-04-18 05:38:48 +00:00
};
}