-
-
Notifications
You must be signed in to change notification settings - Fork 15k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add self to maintainers Package TeamTalk5 - https://bearware.dk
- Loading branch information
Showing
2 changed files
with
91 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -192,6 +192,12 @@ | |
github = "2gn"; | ||
githubId = 101851090; | ||
}; | ||
_347Online = { | ||
name = "Katie Janzen"; | ||
email = "[email protected]"; | ||
github = "347Online"; | ||
githubid = 38228372; | ||
}; | ||
_360ied = { | ||
name = "Brian Zhu"; | ||
email = "[email protected]"; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,85 @@ | ||
{ | ||
stdenv, | ||
lib, | ||
fetchurl, | ||
makeWrapper, | ||
xar, | ||
cpio, | ||
}: | ||
let | ||
inherit (stdenv.hostPlatform) system; | ||
throwSystem = throw "Unsupported system: ${stdenv.system}"; | ||
in | ||
stdenv.mkDerivation (finalAttrs: { | ||
pname = "teamtalk5"; | ||
version = "v5.17"; | ||
|
||
src = | ||
let | ||
version = finalAttrs.version; | ||
in | ||
rec { | ||
aarch64-darwin = fetchurl { | ||
url = "https://bearware.dk/teamtalk/${version}/TeamTalk_${version}_Setup.pkg"; | ||
name = "TeamTalk_${version}_Setup.pkg"; | ||
hash = "sha256-oSl9cw0/rnOiqjZy3UBLOB3++CZUoe/LeMFM/jfgyZM="; | ||
}; | ||
# App is universal | ||
x86_64-darwin = aarch64-darwin; | ||
} | ||
.${stdenv.system} or throwSystem; | ||
|
||
dontUnpack = stdenv.hostPlatform.isLinux; | ||
unpackPhase = lib.optionalString stdenv.hostPlatform.isDarwin '' | ||
xar -xf $src | ||
zcat < dk.bearware.TeamTalk5.pkg/Payload | cpio -i | ||
''; | ||
|
||
installPhase = '' | ||
runHook preInstall | ||
${ | ||
rec { | ||
aarch64-darwin = '' | ||
mkdir -p $out/Applications | ||
cp -R TeamTalk5.app $out/Applications/ | ||
''; | ||
# darwin steps same on both architectures | ||
x86_64-darwin = aarch64-darwin; | ||
} | ||
.${system} or throwSystem | ||
} | ||
runHook postInstall | ||
''; | ||
|
||
postFixup = lib.optionalString stdenv.hostPlatform.isDarwin '' | ||
makeWrapper $out/Applications/TeamTalk5.app/Contents/MacOS/TeamTalk5 $out/bin/teamtalk | ||
''; | ||
|
||
nativeBuildInputs = | ||
[ | ||
makeWrapper | ||
] | ||
++ lib.optionals stdenv.hostPlatform.isDarwin [ | ||
xar | ||
cpio | ||
]; | ||
|
||
# passthru.updateScript = lib.getExe (writeShellApplication { | ||
# name = "teamtalk5-update-script" | ||
# text = throw "TODO"; | ||
# }); | ||
|
||
meta = { | ||
description = "TeamTalk 5 is a freeware conferencing system which allows multiple users to participate in audio and video conversations."; | ||
homepage = "https://bearware.dk"; | ||
license = lib.licenses.unfree; | ||
maintainers = with lib.maintainers; [ | ||
_347online | ||
]; | ||
platforms = [ | ||
"aarch64-darwin" | ||
"x86_64-darwin" | ||
]; | ||
sourceProvenance = with lib.sourceTypes; [ binaryNativeCode ]; | ||
}; | ||
}) |