vors: 3.1.0 -> 5.0.0
updateScript was not working due to a URL change, so that is fixed in this commit. I also took the opportunity to move to buildGoModule.
This commit is contained in:
committed by
Doron Behar
parent
a75a062c39
commit
a80d56eea2
@@ -11,21 +11,24 @@
|
||||
pkg-config,
|
||||
opusfile,
|
||||
sox,
|
||||
libogg,
|
||||
makeWrapper,
|
||||
buildGoModule,
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
buildGoModule (finalAttrs: {
|
||||
pname = "vors";
|
||||
version = "3.1.0";
|
||||
version = "5.0.0";
|
||||
|
||||
src = fetchurl {
|
||||
url = "http://www.vors.stargrave.org/download/vors-${finalAttrs.version}.tar.zst";
|
||||
hash = "sha256-ZRQI96j0n00eh1qxO8NgJeOQPU9bfzHoHa45xQNuzv8=";
|
||||
hash = "sha256-DpwnhfexF/yw2emn1xrhKbGNbk9Z6wm5A2azQSAdmpA=";
|
||||
};
|
||||
|
||||
vendorHash = null;
|
||||
buildInputs = [
|
||||
go
|
||||
opusfile
|
||||
libogg
|
||||
sox
|
||||
];
|
||||
|
||||
@@ -36,21 +39,26 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
makeWrapper
|
||||
];
|
||||
|
||||
subPackages = [
|
||||
"cmd/vad"
|
||||
"cmd/keygen"
|
||||
"cmd/server"
|
||||
"cmd/client"
|
||||
];
|
||||
|
||||
preConfigure = "export GOCACHE=$NIX_BUILD_TOP/gocache";
|
||||
|
||||
buildPhase = ''
|
||||
runHook preBuild
|
||||
preBuild = ''
|
||||
./mk-non-static
|
||||
mkdir -p ./local/lib # Required to prevent building libopusfile
|
||||
./build
|
||||
runHook postBuild
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
mkdir -p "$out"/bin
|
||||
cp -f bin/* "$out"/bin
|
||||
chmod 755 "$out"/bin/*
|
||||
install -Dm755 "$GOPATH"/bin/client "$out"/bin/vors-client
|
||||
install -Dm755 "$GOPATH"/bin/keygen "$out"/bin/vors-keygen
|
||||
install -Dm755 "$GOPATH"/bin/server "$out"/bin/vors-server
|
||||
install -Dm755 "$GOPATH"/bin/vad "$out"/bin/vors-vad
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
@@ -70,7 +78,7 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
meta = {
|
||||
broken = stdenv.hostPlatform.isDarwin;
|
||||
description = "Very simple and usable multi-user VoIP solution";
|
||||
downloadPage = "http://www.vors.stargrave.org/Install.html";
|
||||
downloadPage = "http://www.vors.stargrave.org/INSTALL.html";
|
||||
homepage = "http://www.vors.stargrave.org/";
|
||||
license = lib.licenses.gpl3Only;
|
||||
longDescription = ''
|
||||
|
||||
Reference in New Issue
Block a user