mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-13 17:23:08 +00:00
755b915a15
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"[Aa]n?' pkgs \ | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Aa]n? (.)/\1\U\2/'
56 lines
1.4 KiB
Nix
56 lines
1.4 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchurl,
|
|
jre,
|
|
makeWrapper,
|
|
nix-update-script,
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "peergos";
|
|
version = "0.18.0";
|
|
src = fetchurl {
|
|
url = "https://github.com/Peergos/web-ui/releases/download/v${version}/Peergos.jar";
|
|
hash = "sha256-qscNGuptkRd7bQhIq51bJ/cH2Gzn60lB4IUT9RK6eIo=";
|
|
};
|
|
|
|
dontUnpack = true;
|
|
dontBuild = true;
|
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
|
|
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
|
|
'';
|
|
|
|
passthru.updateScript = nix-update-script {
|
|
extraArgs = [
|
|
"--version-regex"
|
|
"^(v[0-9.]+)$"
|
|
];
|
|
};
|
|
|
|
meta = {
|
|
changelog = "https://github.com/Peergos/web-ui/releases/tag/v${version}";
|
|
description = "P2p, secure file storage, social network and application protocol";
|
|
downloadPage = "https://github.com/Peergos/web-ui";
|
|
homepage = "https://peergos.org/";
|
|
# peergos have agpt3 license, peergos-web-ui have gpl3, both are used
|
|
license = [
|
|
lib.licenses.agpl3Only
|
|
lib.licenses.gpl3Only
|
|
];
|
|
mainProgram = "peergos";
|
|
maintainers = with lib.maintainers; [ raspher ];
|
|
platforms = lib.platforms.all;
|
|
sourceProvenance = with lib.sourceTypes; [ binaryBytecode ];
|
|
};
|
|
}
|