ndi: update src and fix lib symlink

+7 -15
+7 -15
pkgs/development/libraries/ndi/default.nix
··· 1 - { lib, stdenv, requireFile, avahi, obs-studio-plugins }: 1 + { lib, stdenv, fetchurl, avahi, obs-studio-plugins }: 2 2 3 3 let 4 4 versionJSON = lib.importJSON ./version.json; ··· 15 15 majorVersion = builtins.head (builtins.splitVersion version); 16 16 installerName = "Install_NDI_SDK_v${majorVersion}_Linux"; 17 17 18 - 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 - ''; 18 + src = fetchurl { 19 + name = "${pname}-${version}.tar.gz"; 20 + url = "https://downloads.ndi.tv/SDK/NDI_SDK_Linux/${installerName}.tar.gz"; 21 + hash = versionJSON.hash; 32 22 }; 33 23 34 24 buildInputs = [ avahi ]; ··· 52 42 if [ -L "$i" ]; then continue; fi 53 43 patchelf --set-rpath "${avahi}/lib:${stdenv.cc.libc}/lib" "$i" 54 44 done 45 + rm $out/bin/libndi.so.${majorVersion} 46 + ln -s $out/lib/libndi.so.${version} $out/bin/libndi.so.${majorVersion} 55 47 mv include examples $out/ 56 48 mkdir -p $out/share/doc/${pname}-${version} 57 49 mv licenses $out/share/doc/${pname}-${version}/licenses