2023-04-11 10:52:27 +00:00
|
|
|
{ lib, stdenv, writeScript, callPackage, buildFHSEnv, unwrapped ? callPackage ./runtime.nix {} }:
|
2017-07-12 14:36:28 +00:00
|
|
|
|
2023-04-11 10:52:27 +00:00
|
|
|
buildFHSEnv rec {
|
2021-06-27 20:47:50 +00:00
|
|
|
name = "houdini-${unwrapped.version}";
|
|
|
|
|
|
|
|
targetPkgs = pkgs: with pkgs; [
|
2023-05-10 15:26:21 +00:00
|
|
|
libGLU
|
|
|
|
libGL
|
|
|
|
alsa-lib
|
|
|
|
fontconfig
|
|
|
|
zlib
|
|
|
|
libpng
|
|
|
|
dbus
|
|
|
|
nss
|
|
|
|
nspr
|
|
|
|
expat
|
|
|
|
pciutils
|
|
|
|
libxkbcommon
|
|
|
|
libudev0-shim
|
|
|
|
tbb
|
2021-06-27 20:47:50 +00:00
|
|
|
] ++ (with xorg; [
|
2023-05-10 15:26:21 +00:00
|
|
|
libICE
|
|
|
|
libSM
|
|
|
|
libXmu
|
|
|
|
libXi
|
|
|
|
libXext
|
|
|
|
libX11
|
|
|
|
libXrender
|
|
|
|
libXcursor
|
|
|
|
libXfixes
|
|
|
|
libXrender
|
|
|
|
libXcomposite
|
|
|
|
libXdamage
|
|
|
|
libXtst
|
|
|
|
libxcb
|
|
|
|
libXScrnSaver
|
2021-06-27 20:47:50 +00:00
|
|
|
]);
|
2017-07-12 14:36:28 +00:00
|
|
|
|
2021-06-20 13:41:32 +00:00
|
|
|
passthru = {
|
2021-06-27 20:47:50 +00:00
|
|
|
inherit unwrapped;
|
2021-06-20 13:41:32 +00:00
|
|
|
};
|
|
|
|
|
2021-06-27 21:58:58 +00:00
|
|
|
extraInstallCommands = let
|
2023-05-10 15:26:21 +00:00
|
|
|
executables = [
|
|
|
|
"bin/houdini"
|
|
|
|
"bin/hkey"
|
|
|
|
"houdini/sbin/sesinetd"
|
|
|
|
];
|
2021-06-27 21:58:58 +00:00
|
|
|
in ''
|
|
|
|
WRAPPER=$out/bin/${name}
|
|
|
|
EXECUTABLES="${lib.concatStringsSep " " executables}"
|
|
|
|
for executable in $EXECUTABLES; do
|
|
|
|
mkdir -p $out/$(dirname $executable)
|
|
|
|
|
|
|
|
echo "#!${stdenv.shell}" >> $out/$executable
|
|
|
|
echo "$WRAPPER ${unwrapped}/$executable \$@" >> $out/$executable
|
|
|
|
done
|
|
|
|
|
|
|
|
cd $out
|
|
|
|
chmod +x $EXECUTABLES
|
|
|
|
'';
|
|
|
|
|
|
|
|
runScript = writeScript "${name}-wrapper" ''
|
|
|
|
exec $@
|
|
|
|
'';
|
2017-07-12 14:36:28 +00:00
|
|
|
}
|