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

43 lines
1.6 KiB
Nix
Raw Normal View History

2021-06-27 21:47:50 +01:00
{ lib, stdenv, requireFile, bc }:
2017-07-12 15:36:28 +01:00
let
license_dir = "~/.config/houdini";
in
stdenv.mkDerivation rec {
2020-06-04 13:26:25 +01:00
version = "18.0.460";
pname = "houdini-runtime";
2017-07-12 15:36:28 +01:00
src = requireFile rec {
2021-06-27 21:47:50 +01:00
#name = "houdini-py3-${version}-linux_x86_64_gcc6.3.tar.gz";
#sha256 = "10qp8nml1ivl0syh0iwzx3zdwdpilnwakax50wydcrzdzyxza7xw"; # 18.5.621
#sha256 = "1b1k7rkn7svmciijqdwvi9p00srsf81vkb55grjg6xa7fgyidjx1"; # 18.5.596
2018-11-14 14:27:30 +00:00
name = "houdini-${version}-linux_x86_64_gcc6.3.tar.gz";
2021-06-27 21:47:50 +01:00
sha256 = "18rbwszcks2zfn9zbax62rxmq50z9mc3h39b13jpd39qjqdd3jsd"; # 18.0.460
url = meta.homepage;
2017-07-12 15:36:28 +01:00
};
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
2017-07-12 15:36:28 +01:00
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
'';
2021-06-27 21:47:50 +01:00
meta = with lib; {
2017-07-12 15:36:28 +01:00
description = "3D animation application software";
homepage = "https://www.sidefx.com";
2021-06-27 21:47:50 +01:00
license = licenses.unfree;
platforms = platforms.linux;
hydraPlatforms = [ ]; # requireFile src's should be excluded
2021-06-27 21:47:50 +01:00
maintainers = with maintainers; [ canndrew kwohlfahrt ];
2017-07-12 15:36:28 +01:00
};
}