Skip to content

Commit

Permalink
ndi: 5.5.2 -> 5.6.0
Browse files Browse the repository at this point in the history
  • Loading branch information
vifino committed Jan 3, 2024
1 parent ce5ed36 commit 1b25a00
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 deletions.
16 changes: 11 additions & 5 deletions pkgs/development/libraries/ndi/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down Expand Up @@ -35,20 +41,20 @@ 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"
done
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}/
'';

Expand All @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion pkgs/development/libraries/ndi/version.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"hash": "sha256:70e04c2e7a629a9854de2727e0f978175b7a4ec6cf4cd9799a22390862f6fa27", "version": "5.5.2"}
{"hash": "sha256:4ff4b92f2c5f42d234aa7d142e2de7e9b045c72b46ad5149a459d48efd9218de", "version": "5.6.0"}

0 comments on commit 1b25a00

Please sign in to comment.