peergos: 0.14.1 -> 0.17.0
This commit is contained in:
parent
fca59efa1e
commit
96defb793f
1 changed files with 33 additions and 22 deletions
|
@ -1,20 +1,19 @@
|
|||
{ lib
|
||||
, stdenv
|
||||
, fetchurl
|
||||
, jre
|
||||
, makeWrapper
|
||||
{
|
||||
lib,
|
||||
stdenv,
|
||||
fetchurl,
|
||||
jre,
|
||||
makeWrapper,
|
||||
nix-update-script,
|
||||
}:
|
||||
|
||||
let
|
||||
version = "0.14.1";
|
||||
peergos = fetchurl {
|
||||
url = "https://github.com/Peergos/web-ui/releases/download/v${version}/Peergos.jar";
|
||||
hash = "sha256-oCsUuFxTAL0vAabGggGhZHaF40A5TLfkT15HYPiKHlU=";
|
||||
};
|
||||
in
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "peergos";
|
||||
inherit version;
|
||||
version = "0.17.0";
|
||||
src = fetchurl {
|
||||
url = "https://github.com/Peergos/web-ui/releases/download/v${version}/Peergos.jar";
|
||||
hash = "sha256-sQPEKvtQDRQ4dF22tZjPhK7DLtDVAcudxoA4+GOeeZA=";
|
||||
};
|
||||
|
||||
dontUnpack = true;
|
||||
dontBuild = true;
|
||||
|
@ -24,21 +23,33 @@ stdenv.mkDerivation rec {
|
|||
installPhase = ''
|
||||
runHook preInstall
|
||||
|
||||
install -D ${peergos} $out/share/java/peergos.jar
|
||||
makeWrapper ${lib.getExe jre} $out/bin/${pname} \
|
||||
--add-flags "-jar -Djava.library.path=native-lib $out/share/java/${pname}.jar"
|
||||
install -D ${src} $out/share/java/peergos.jar
|
||||
makeWrapper ${lib.getExe jre} $out/bin/peergos \
|
||||
--add-flags "-jar -Djava.library.path=native-lib $out/share/java/peergos.jar"
|
||||
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
passthru.updateScript = nix-update-script {
|
||||
extraArgs = [
|
||||
"--version-regex"
|
||||
"^(v[0-9.]+)$"
|
||||
];
|
||||
};
|
||||
|
||||
meta = {
|
||||
changelog = "https://github.com/Peergos/web-ui/releases/tag/v${version}";
|
||||
description = "A p2p, secure file storage, social network and application protocol";
|
||||
mainProgram = "peergos";
|
||||
downloadPage = "https://github.com/Peergos/web-ui";
|
||||
homepage = "https://peergos.org/";
|
||||
# peergos have agpt3 license, peergos-web-ui have gpl3, both are used
|
||||
license = [ licenses.agpl3Only licenses.gpl3Only ];
|
||||
platforms = platforms.all;
|
||||
maintainers = with maintainers; [ raspher ];
|
||||
sourceProvenance = with sourceTypes; [ binaryBytecode ];
|
||||
license = [
|
||||
lib.licenses.agpl3Only
|
||||
lib.licenses.gpl3Only
|
||||
];
|
||||
mainProgram = "peergos";
|
||||
maintainers = with lib.maintainers; [ raspher ];
|
||||
platforms = lib.platforms.all;
|
||||
sourceProvenance = with lib.sourceTypes; [ binaryBytecode ];
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue