mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 06:01:15 +00:00
87 lines
2.9 KiB
Nix
87 lines
2.9 KiB
Nix
{ stdenv, requireFile, zlib, libpng, libSM, libICE, fontconfig, xorg, libGLU, libGL, alsaLib, dbus, xkeyboardconfig, bc }:
|
|
|
|
let
|
|
ld_library_path = builtins.concatStringsSep ":" [
|
|
"${stdenv.cc.cc.lib}/lib64"
|
|
(stdenv.lib.makeLibraryPath [
|
|
libGLU
|
|
libGL
|
|
xorg.libXmu
|
|
xorg.libXi
|
|
xorg.libXext
|
|
xorg.libX11
|
|
xorg.libXrender
|
|
xorg.libXcursor
|
|
xorg.libXfixes
|
|
xorg.libXrender
|
|
xorg.libXcomposite
|
|
xorg.libXdamage
|
|
xorg.libXtst
|
|
alsaLib
|
|
fontconfig
|
|
libSM
|
|
libICE
|
|
zlib
|
|
libpng
|
|
dbus
|
|
])
|
|
];
|
|
license_dir = "~/.config/houdini";
|
|
in
|
|
stdenv.mkDerivation rec {
|
|
version = "17.0.352";
|
|
name = "houdini-runtime-${version}";
|
|
src = requireFile rec {
|
|
name = "houdini-${version}-linux_x86_64_gcc6.3.tar.gz";
|
|
sha256 = "0cl5fkgaplb0cvv7mli06ffc9j4ngpy8hl5zqabj3d645gcgafjg";
|
|
message = ''
|
|
This nix expression requires that ${name} is already part of the store.
|
|
Download it from https://sidefx.com and add it to the nix store with:
|
|
|
|
nix-prefetch-url <URL>
|
|
|
|
This can't be done automatically because you need to create an account on
|
|
their website and agree to their license terms before you can download
|
|
it. That's what you get for using proprietary software.
|
|
'';
|
|
};
|
|
|
|
buildInputs = [ bc ];
|
|
installPhase = ''
|
|
patchShebangs houdini.install
|
|
mkdir -p $out
|
|
sed -i "s|/usr/lib/sesi|${license_dir}|g" houdini.install
|
|
./houdini.install --install-houdini \
|
|
--no-install-menus \
|
|
--no-install-bin-symlink \
|
|
--auto-install \
|
|
--no-root-check \
|
|
--accept-EULA \
|
|
$out
|
|
echo -e "localValidatorDir = ${license_dir}\nlicensingMode = localValidator" > $out/houdini/Licensing.opt
|
|
sed -i "s|/usr/lib/sesi|${license_dir}|g" $out/houdini/sbin/sesinetd_safe
|
|
sed -i "s|/usr/lib/sesi|${license_dir}|g" $out/houdini/sbin/sesinetd.startup
|
|
echo "export LD_LIBRARY_PATH=${ld_library_path}" >> $out/bin/app_init.sh
|
|
echo "export QT_XKB_CONFIG_ROOT="${xkeyboardconfig}/share/X11/xkb"" >> $out/bin/app_init.sh
|
|
echo "export LD_LIBRARY_PATH=${ld_library_path}" >> $out/houdini/sbin/app_init.sh
|
|
echo "export QT_XKB_CONFIG_ROOT="${xkeyboardconfig}/share/X11/xkb"" >> $out/houdini/sbin/app_init.sh
|
|
'';
|
|
postFixup = ''
|
|
INTERPRETER="$(cat "$NIX_CC"/nix-support/dynamic-linker)"
|
|
for BIN in $(find $out/bin -type f -executable); do
|
|
if patchelf $BIN 2>/dev/null ; then
|
|
echo "Patching ELF $BIN"
|
|
patchelf --set-interpreter "$INTERPRETER" "$BIN"
|
|
fi
|
|
done
|
|
'';
|
|
meta = {
|
|
description = "3D animation application software";
|
|
homepage = https://sidefx.com;
|
|
license = stdenv.lib.licenses.unfree;
|
|
platforms = stdenv.lib.platforms.linux;
|
|
maintainers = [ stdenv.lib.maintainers.canndrew ];
|
|
};
|
|
}
|
|
|