2020-11-01 10:41:33 +01:00
|
|
|
{ buildEnv, callPackage, makeWrapper }:
|
|
|
|
|
|
|
|
let
|
|
|
|
sp = callPackage ./sp.nix {};
|
2023-07-25 15:27:31 +02:00
|
|
|
mp = sp.overrideAttrs (oldAttrs: {
|
|
|
|
sourceRoot = "${oldAttrs.src.name}/MP";
|
2020-11-01 10:41:33 +01:00
|
|
|
});
|
|
|
|
in buildEnv {
|
|
|
|
name = "iortcw";
|
|
|
|
|
|
|
|
paths = [ sp mp ];
|
|
|
|
|
|
|
|
pathsToLink = [ "/opt" ];
|
|
|
|
|
2021-07-12 21:56:44 +02:00
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
2020-11-01 10:41:33 +01:00
|
|
|
|
|
|
|
# so we can launch sp from mp game and vice versa
|
|
|
|
postBuild = ''
|
|
|
|
for i in `find -L $out/opt/iortcw -maxdepth 1 -type f -executable`; do
|
2022-03-14 19:06:00 +01:00
|
|
|
makeWrapper $i $out/bin/`basename $i` --chdir "$out/opt/iortcw"
|
2020-11-01 10:41:33 +01:00
|
|
|
done
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = sp.meta // {
|
|
|
|
description = "Game engine for Return to Castle Wolfenstein";
|
|
|
|
};
|
|
|
|
}
|