Packaging/Binaries: Difference between revisions
imported>R-burns m Follow-up previous edit, missed one! |
imported>Mic92 update studio-link example |
||
Line 6: | Line 6: | ||
<syntaxHighlight lang=nix> | <syntaxHighlight lang=nix> | ||
{ stdenv, lib | { stdenv, lib | ||
, fetchurl | , fetchurl | ||
, alsaLib | , alsaLib | ||
, | , openssl | ||
, zlib | , zlib | ||
, | , pulseaudio | ||
, autoPatchelfHook | , autoPatchelfHook | ||
}: | }: | ||
Line 18: | Line 17: | ||
stdenv.mkDerivation rec { | stdenv.mkDerivation rec { | ||
name = "studio-link-${version}"; | name = "studio-link-${version}"; | ||
version = " | |||
version = "21.07.0"; | |||
src = fetchurl { | src = fetchurl { | ||
url = "https:// | url = "https://download.studio.link/releases/v${version}-stable/linux/studio-link-standalone-v${version}.tar.gz"; | ||
sha256 = " | sha256 = "sha256-4CkijAlenhht8tyk3nBULaBPE0GBf6DVII699/RmmWI="; | ||
}; | }; | ||
nativeBuildInputs = [ | nativeBuildInputs = [ | ||
autoPatchelfHook | autoPatchelfHook | ||
]; | ]; | ||
Line 32: | Line 31: | ||
buildInputs = [ | buildInputs = [ | ||
alsaLib | alsaLib | ||
openssl | |||
zlib | zlib | ||
pulseaudio | |||
]; | ]; | ||
sourceRoot = "."; | |||
installPhase = '' | installPhase = '' | ||
install -m755 -D studio-link-standalone $out/bin/studio-link | install -m755 -D studio-link-standalone-v${version} $out/bin/studio-link | ||
''; | ''; | ||
meta = with lib; { | meta = with lib; { | ||
homepage = https://studio-link.com; | homepage = "https://studio-link.com"; | ||
description = "Voip transfer"; | description = "Voip transfer"; | ||
platforms = platforms.linux; | platforms = platforms.linux; | ||
}; | }; | ||
} | } | ||
</syntaxHighlight> | </syntaxHighlight> | ||