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
50 lines
1.3 KiB
Nix
50 lines
1.3 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
gitUpdater,
|
|
fetchFromGitHub,
|
|
cmake,
|
|
pkgsCross,
|
|
}:
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "heroic-epic-integration";
|
|
version = "0.3";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "Etaash-mathamsetty";
|
|
repo = "heroic-epic-integration";
|
|
tag = "v${finalAttrs.version}";
|
|
hash = "sha256-Zn0MsaQd8Ro6eu8IQkMcLNGLVTUukwajkn8PRLfB+Yw=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
cmake
|
|
pkgsCross.mingwW64.buildPackages.gcc
|
|
];
|
|
|
|
cmakeFlags = [ (lib.cmakeFeature "CMAKE_TOOLCHAIN_FILE" "../windows.cmake") ];
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
|
|
mkdir $out
|
|
cp heroic-epic-integration.exe $out/EpicGamesLauncher.exe
|
|
|
|
runHook postInstall
|
|
'';
|
|
|
|
meta = {
|
|
description = "Wrapper process for games launched through Heroic Games Launcher";
|
|
longDescription = ''
|
|
This is a Windows executable that pretends to be EpicGamesLauncher.exe for
|
|
games that expect it to be their parent process.
|
|
'';
|
|
homepage = "https://github.com/Etaash-mathamsetty/heroic-epic-integration";
|
|
changelog = "https://github.com/Etaash-mathamsetty/heroic-epic-integration/releases/tag/v${finalAttrs.version}";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [ aidalgol ];
|
|
};
|
|
|
|
passthru.updateScript = gitUpdater { };
|
|
})
|