2020-11-01 09:41:33 +00:00
|
|
|
{ buildEnv, callPackage, makeWrapper }:
|
|
|
|
|
|
|
|
let
|
|
|
|
sp = callPackage ./sp.nix {};
|
|
|
|
mp = sp.overrideAttrs (oldAttrs: rec {
|
|
|
|
sourceRoot = "source/MP";
|
|
|
|
});
|
|
|
|
in buildEnv {
|
|
|
|
name = "iortcw";
|
|
|
|
|
|
|
|
paths = [ sp mp ];
|
|
|
|
|
|
|
|
pathsToLink = [ "/opt" ];
|
|
|
|
|
2021-07-12 19:56:44 +00:00
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
2020-11-01 09:41:33 +00: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
|
|
|
|
makeWrapper $i $out/bin/`basename $i` --run "cd $out/opt/iortcw"
|
|
|
|
done
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = sp.meta // {
|
|
|
|
description = "Game engine for Return to Castle Wolfenstein";
|
|
|
|
};
|
|
|
|
}
|