···1-{ lib, stdenv, requireFile, avahi, obs-studio-plugins }:
23let
4 versionJSON = lib.importJSON ./version.json;
···15 majorVersion = builtins.head (builtins.splitVersion version);
16 installerName = "Install_NDI_SDK_v${majorVersion}_Linux";
1718- src = requireFile rec {
19- name = "${installerName}.tar.gz";
20- sha256 = versionJSON.hash;
21- message = ''
22- In order to use NDI SDK version ${version}, you need to comply with
23- NewTek's license and download the appropriate Linux tarball from:
24-25- ${meta.homepage}
26-27- Once you have downloaded the file, please use the following command and
28- re-run the installation:
29-30- \$ nix-prefetch-url file://\$PWD/${name}
31- '';
32 };
3334 buildInputs = [ avahi ];
···52 if [ -L "$i" ]; then continue; fi
53 patchelf --set-rpath "${avahi}/lib:${stdenv.cc.libc}/lib" "$i"
54 done
0055 mv include examples $out/
56 mkdir -p $out/share/doc/${pname}-${version}
57 mv licenses $out/share/doc/${pname}-${version}/licenses