nixpkgs/pkgs/applications/misc/houdini/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

38 lines
1.0 KiB
Nix
Raw Normal View History

2021-11-13 22:28:25 +00:00
{ lib, stdenv, writeScript, callPackage, buildFHSUserEnv, unwrapped ? callPackage ./runtime.nix {} }:
2017-07-12 14:36:28 +00:00
buildFHSUserEnv rec {
2021-06-27 20:47:50 +00:00
name = "houdini-${unwrapped.version}";
targetPkgs = pkgs: with pkgs; [
libGLU libGL alsa-lib fontconfig zlib libpng dbus nss nspr expat pciutils
2021-08-30 23:22:00 +00:00
libxkbcommon libudev0-shim tbb
2021-06-27 20:47:50 +00:00
] ++ (with xorg; [
libICE libSM libXmu libXi libXext libX11 libXrender libXcursor libXfixes
libXrender libXcomposite libXdamage libXtst libxcb libXScrnSaver
]);
2017-07-12 14:36:28 +00:00
passthru = {
2021-06-27 20:47:50 +00:00
inherit unwrapped;
};
extraInstallCommands = let
executables = [ "bin/houdini" "bin/hkey" "houdini/sbin/sesinetd" ];
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
}