summaryrefslogtreecommitdiffstats
path: root/makefu/5pkgs/studio-link/default.nix
blob: 3a02e365cdabd84189c1c21cce9fd750f3bdd55b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
{ stdenv
, fetchurl
, alsaLib
, unzip
, openssl
, zlib
, libjack2
, pulseaudio
, autoPatchelfHook
}:

stdenv.mkDerivation rec {
  name = "studio-link-${version}";
  version = "21.03.2";

  src = fetchurl {
    url = "https://download.studio.link/releases/v${version}-stable/linux/studio-link-standalone-v${version}.tar.gz";
    sha256 = "0szaym9lrkbnwxaffab9snlsij6kkwlin70d36bm3vi2la8iayc6";
  };

  nativeBuildInputs = [
    autoPatchelfHook
  ];
  sourceRoot = ".";
  buildInputs = [
    alsaLib
    openssl
    zlib
    pulseaudio
  ];


  installPhase = ''
    install -m755 -D studio-link-standalone-v${version} $out/bin/studio-link
  '';

  meta = with stdenv.lib; {
    homepage = https://studio-link.com;
    description = "Voip transfer";
    platforms = platforms.linux;
    maintainers = with maintainers; [ makefu ];
  };
}