diff options
author | Franz Pletz <fpletz@fnordicwalking.de> | 2024-01-18 13:47:57 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-18 13:47:57 +0100 |
commit | 34258cec443c27f3f628315ee915bc0b8441dfb2 (patch) | |
tree | d32c502a64d97c6a0b75933e5b8bb335e2666d1b /pkgs | |
parent | fc75ae719a492568ffee4b5d5c641f7cefc070f0 (diff) | |
parent | 1b25a006dc5f8a551e30d7d72475060bbb9626ea (diff) |
Merge pull request #272073 from vifino/ndi-5.6.0
ndi: 5.5.2 -> 5.6.0
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/development/libraries/ndi/default.nix | 16 | ||||
-rw-r--r-- | pkgs/development/libraries/ndi/version.json | 2 |
2 files changed, 12 insertions, 6 deletions
diff --git a/pkgs/development/libraries/ndi/default.nix b/pkgs/development/libraries/ndi/default.nix index 9cd0d186302ba..06eb1b8150691 100644 --- a/pkgs/development/libraries/ndi/default.nix +++ b/pkgs/development/libraries/ndi/default.nix @@ -2,6 +2,12 @@ let versionJSON = lib.importJSON ./version.json; + ndiPlatform = + if stdenv.isAarch64 then "aarch64-rpi4-linux-gnueabi" + else if stdenv.isAarch32 then "arm-rpi2-linux-gnueabihf" + else if stdenv.isx86_64 then "x86_64-linux-gnu" + else if stdenv.isi686 then "i686-linux-gnu" + else throw "unsupported platform for NDI SDK"; in stdenv.mkDerivation rec { pname = "ndi"; @@ -35,12 +41,13 @@ stdenv.mkDerivation rec { installPhase = '' mkdir $out - mv bin/x86_64-linux-gnu $out/bin + mv bin/${ndiPlatform} $out/bin for i in $out/bin/*; do + if [ -L "$i" ]; then continue; fi patchelf --set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" "$i" done patchelf --set-rpath "${avahi}/lib:${stdenv.cc.libc}/lib" $out/bin/ndi-record - mv lib/x86_64-linux-gnu $out/lib + mv lib/${ndiPlatform} $out/lib for i in $out/lib/*; do if [ -L "$i" ]; then continue; fi patchelf --set-rpath "${avahi}/lib:${stdenv.cc.libc}/lib" "$i" @@ -48,7 +55,6 @@ stdenv.mkDerivation rec { mv include examples $out/ mkdir -p $out/share/doc/${pname}-${version} mv licenses $out/share/doc/${pname}-${version}/licenses - mv logos $out/share/doc/${pname}-${version}/logos mv documentation/* $out/share/doc/${pname}-${version}/ ''; @@ -61,9 +67,9 @@ stdenv.mkDerivation rec { passthru.updateScript = ./update.py; meta = with lib; { - homepage = "https://ndi.tv/sdk/"; + homepage = "https://ndi.video/ndi-sdk/"; description = "NDI Software Developer Kit"; - platforms = ["x86_64-linux"]; + platforms = ["x86_64-linux" "i686-linux" "aarch64-linux" "armv7l-linux"]; hydraPlatforms = []; sourceProvenance = with sourceTypes; [ binaryNativeCode ]; license = licenses.unfree; diff --git a/pkgs/development/libraries/ndi/version.json b/pkgs/development/libraries/ndi/version.json index d751aa79e431c..686abdb2c2b76 100644 --- a/pkgs/development/libraries/ndi/version.json +++ b/pkgs/development/libraries/ndi/version.json @@ -1 +1 @@ -{"hash": "sha256:70e04c2e7a629a9854de2727e0f978175b7a4ec6cf4cd9799a22390862f6fa27", "version": "5.5.2"} +{"hash": "sha256:4ff4b92f2c5f42d234aa7d142e2de7e9b045c72b46ad5149a459d48efd9218de", "version": "5.6.0"} |