diff --git a/default.nix b/default.nix index 87eb2cf..7614b0f 100644 --- a/default.nix +++ b/default.nix @@ -10,4 +10,5 @@ self: super: { gotosocial = super.callPackage ./gotosocial { }; pulse-secure = super.callPackage ./pulse-secure { }; + studio-link = super.callPackage ./studio-link { }; } diff --git a/studio-link.nix b/studio-link.nix new file mode 100644 index 0000000..6d0e7d5 --- /dev/null +++ b/studio-link.nix @@ -0,0 +1,40 @@ +{ stdenv +, lib +, fetchurl +, pulseaudio +, zlib +, alsaLib +, autoPatchelfHook +}: + +stdenv.mkDerivation rec { + pname = "studio-link"; + version = "21.07.0"; + + src = fetchurl { + url = "https://download.studio.link/releases/v${version}-stable/linux/studio-link-standalone-v${version}.tar.gz"; + hash = "sha256-4CkijAlenhht8tyk3nBULaBPE0GBf6DVII699/RmmWI="; + }; + + sourceRoot = "."; + + nativeBuildInputs = [ + autoPatchelfHook + ]; + + buildInputs = [ + alsaLib + pulseaudio + zlib + ]; + + installPhase = '' + install -D -m755 studio-link-standalone-v* $out/bin/studio-link + ''; + + meta = with lib; { + homepage = "https://studio-link.com"; + description = "VoIP Thing"; + platforms = platforms.linux; + }; +}