Files
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

42 lines
1.4 KiB
Nix

{
lib,
fetchurl,
appimageTools,
openal,
}:
let
version = "1.2988.0";
pname = "beyond-all-reason";
src = fetchurl {
url = "https://github.com/beyond-all-reason/BYAR-Chobby/releases/download/v${version}/Beyond-All-Reason-${version}.AppImage";
hash = "sha256-ZJW5BdxxqyrM2TJTO0SBp4BXt3ILyi77EZx73X8hqJE=";
};
appimageContents = appimageTools.extract { inherit pname version src; };
in
appimageTools.wrapType2 {
inherit pname version src;
extraPkgs = pkgs: [ openal ];
extraInstallCommands = ''
install -m 444 -D ${appimageContents}/beyond-all-reason.desktop $out/share/applications/beyond-all-reason.desktop
install -m 444 -D ${appimageContents}/beyond-all-reason.png \
$out/share/icons/hicolor/256x256/apps/beyond-all-reason.png
substituteInPlace $out/share/applications/beyond-all-reason.desktop \
--replace-fail 'Exec=AppRun' 'Exec=beyond-all-reason'
'';
meta = {
homepage = "https://www.beyondallreason.info/";
downloadPage = "https://www.beyondallreason.info/download";
changelog = "https://github.com/beyond-all-reason/BYAR-Chobby/releases/tag/v${version}";
description = "Free Real Time Strategy Game with a grand scale and full physical simulation in a sci-fi setting";
license = lib.licenses.gpl2Plus;
platforms = [ "x86_64-linux" ];
maintainers = with lib.maintainers; [
kiyotoko
];
};
}