Skip to content

Commit

Permalink
squash! ndi-6: init at 6.1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
globule655 committed Dec 29, 2024
1 parent 8796990 commit a69aeef
Showing 1 changed file with 8 additions and 12 deletions.
20 changes: 8 additions & 12 deletions pkgs/by-name/nd/ndi-6/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -15,19 +15,16 @@ let
"arm-rpi2-linux-gnueabihf"
else if stdenv.hostPlatform.isx86_64 then
"x86_64-linux-gnu"
else if stdenv.hostPlatform.isi686 then
"i686-linux-gnu"
else
throw "unsupported platform for NDI SDK";
in
stdenv.mkDerivation rec {
pname = "ndi-6";
version = versionJSON.version;
majorVersion = builtins.head (builtins.splitVersion version);
majorVersion = lib.versions.major version;
installerName = "Install_NDI_SDK_v${majorVersion}_Linux";

src = fetchurl {
name = "${pname}-${version}.tar.gz";
url = "https://downloads.ndi.tv/SDK/NDI_SDK_Linux/${installerName}.tar.gz";
hash = versionJSON.hash;
};
Expand Down Expand Up @@ -59,9 +56,9 @@ stdenv.mkDerivation rec {
# Fake ndi version 5 for compatibility with DistroAV (obs plugin using NDI)
ln -s $out/lib/libndi.so.${version} $out/bin/libndi.so.5
mv include examples $out/
mkdir -p $out/share/doc/${pname}-${version}
mv licenses $out/share/doc/${pname}-${version}/licenses
mv documentation/* $out/share/doc/${pname}-${version}/
mkdir -p $out/share/doc/ndi-6
mv licenses $out/share/doc/ndi-6/licenses
mv documentation/* $out/share/doc/ndi-6/
'';

# Stripping breaks ndi-record.
Expand All @@ -72,7 +69,7 @@ stdenv.mkDerivation rec {
};
passthru.updateScript = ./update.py;

meta = with lib; {
meta = {
homepage = "https://ndi.video/ndi-sdk/";
description = "NDI Software Developer Kit";
platforms = [
Expand All @@ -81,9 +78,8 @@ stdenv.mkDerivation rec {
"aarch64-linux"
"armv7l-linux"
];
hydraPlatforms = [ ];
sourceProvenance = with sourceTypes; [ binaryNativeCode ];
license = licenses.unfree;
maintainers = with maintainers; [ globule655 ];
sourceProvenance = with lib.sourceTypes; [ binaryNativeCode ];
license = lib.licenses.unfree;
maintainers = with lib.maintainers; [ globule655 ];
};
}

0 comments on commit a69aeef

Please sign in to comment.