tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
ndi: update src and fix lib symlink
Joshua Campbell
2 years ago
15ee2ca4
6315cf18
+7
-15
1 changed file
expand all
collapse all
unified
split
pkgs
development
libraries
ndi
default.nix
+7
-15
pkgs/development/libraries/ndi/default.nix
···
1
1
-
{ lib, stdenv, requireFile, avahi, obs-studio-plugins }:
1
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
18
-
src = requireFile rec {
19
19
-
name = "${installerName}.tar.gz";
20
20
-
sha256 = versionJSON.hash;
21
21
-
message = ''
22
22
-
In order to use NDI SDK version ${version}, you need to comply with
23
23
-
NewTek's license and download the appropriate Linux tarball from:
24
24
-
25
25
-
${meta.homepage}
26
26
-
27
27
-
Once you have downloaded the file, please use the following command and
28
28
-
re-run the installation:
29
29
-
30
30
-
\$ nix-prefetch-url file://\$PWD/${name}
31
31
-
'';
18
18
+
src = fetchurl {
19
19
+
name = "${pname}-${version}.tar.gz";
20
20
+
url = "https://downloads.ndi.tv/SDK/NDI_SDK_Linux/${installerName}.tar.gz";
21
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
45
+
rm $out/bin/libndi.so.${majorVersion}
46
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