Merge pull request #272073 from vifino/ndi-5.6.0

ndi: 5.5.2 -> 5.6.0

authored by Franz Pletz and committed by GitHub 34258cec fc75ae71

+12 -6
+11 -5
pkgs/development/libraries/ndi/default.nix
··· 2 2 3 3 let 4 4 versionJSON = lib.importJSON ./version.json; 5 + ndiPlatform = 6 + if stdenv.isAarch64 then "aarch64-rpi4-linux-gnueabi" 7 + else if stdenv.isAarch32 then "arm-rpi2-linux-gnueabihf" 8 + else if stdenv.isx86_64 then "x86_64-linux-gnu" 9 + else if stdenv.isi686 then "i686-linux-gnu" 10 + else throw "unsupported platform for NDI SDK"; 5 11 in 6 12 stdenv.mkDerivation rec { 7 13 pname = "ndi"; ··· 35 41 36 42 installPhase = '' 37 43 mkdir $out 38 - mv bin/x86_64-linux-gnu $out/bin 44 + mv bin/${ndiPlatform} $out/bin 39 45 for i in $out/bin/*; do 46 + if [ -L "$i" ]; then continue; fi 40 47 patchelf --set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" "$i" 41 48 done 42 49 patchelf --set-rpath "${avahi}/lib:${stdenv.cc.libc}/lib" $out/bin/ndi-record 43 - mv lib/x86_64-linux-gnu $out/lib 50 + mv lib/${ndiPlatform} $out/lib 44 51 for i in $out/lib/*; do 45 52 if [ -L "$i" ]; then continue; fi 46 53 patchelf --set-rpath "${avahi}/lib:${stdenv.cc.libc}/lib" "$i" ··· 48 55 mv include examples $out/ 49 56 mkdir -p $out/share/doc/${pname}-${version} 50 57 mv licenses $out/share/doc/${pname}-${version}/licenses 51 - mv logos $out/share/doc/${pname}-${version}/logos 52 58 mv documentation/* $out/share/doc/${pname}-${version}/ 53 59 ''; 54 60 ··· 61 67 passthru.updateScript = ./update.py; 62 68 63 69 meta = with lib; { 64 - homepage = "https://ndi.tv/sdk/"; 70 + homepage = "https://ndi.video/ndi-sdk/"; 65 71 description = "NDI Software Developer Kit"; 66 - platforms = ["x86_64-linux"]; 72 + platforms = ["x86_64-linux" "i686-linux" "aarch64-linux" "armv7l-linux"]; 67 73 hydraPlatforms = []; 68 74 sourceProvenance = with sourceTypes; [ binaryNativeCode ]; 69 75 license = licenses.unfree;
+1 -1
pkgs/development/libraries/ndi/version.json
··· 1 - {"hash": "sha256:70e04c2e7a629a9854de2727e0f978175b7a4ec6cf4cd9799a22390862f6fa27", "version": "5.5.2"} 1 + {"hash": "sha256:4ff4b92f2c5f42d234aa7d142e2de7e9b045c72b46ad5149a459d48efd9218de", "version": "5.6.0"}