nixpkgs/pkgs/by-name/bi/biglybt/package.nix
Jan Tojnar eb04659fc2 treewide: wrapGAppsHook → wrapGAppsHook3
This was achieved using the following command:

    sd 'wrapGAppsHook\b' wrapGAppsHook3 (rg -l 'wrapGAppsHook\b')

And then manually reverted the following changes:

- alias in top-level.nix
- function name in wrap-gapps-hook.sh
- comment in postFixup of at-spi2-core
- comment in gtk4
- comment in preFixup of 1password-gui/linux.nix
- comment in postFixup of qgis/unwrapped-ltr.nix and qgis/unwrapped.nix
- comment in postFixup of telegram-desktop
- comment in postFixup of fwupd
- buildCommand of mongodb-compass
- postFixup of xflux-gui
- comment in a patch in kdePackages.kde-gtk-config and plasma5Packages.kde-gtk-config
- description of programs.sway.wrapperFeatures.gtk NixOS option (manual rebuild)
2024-04-27 02:23:22 +02:00

67 lines
1.7 KiB
Nix

{
lib,
stdenv,
fetchurl,
jre,
wrapGAppsHook3,
nix-update-script,
}:
stdenv.mkDerivation rec {
pname = "biglybt";
version = "3.6.0.0";
src = fetchurl {
url = "https://github.com/BiglySoftware/BiglyBT/releases/download/v${version}/GitHub_BiglyBT_unix.tar.gz";
hash = "sha256-a7g9sB3orO2m0X7qNwQ1dDygYPhs/b6kX0RDSG8Wq2U=";
};
nativeBuildInputs = [ wrapGAppsHook3 ];
configurePhase = ''
runHook preConfigure
sed -e 's/AUTOUPDATE_SCRIPT=1/AUTOUPDATE_SCRIPT=0/g' \
-i biglybt || die
runHook postConfigure
'';
installPhase = ''
runHook preInstall
install -d $out/{share/{biglybt,applications,icons/hicolor/scalable/apps},bin}
cp -r ./* $out/share/biglybt/
ln -s $out/share/biglybt/biglybt.desktop $out/share/applications/
ln -s $out/share/biglybt/biglybt.svg $out/share/icons/hicolor/scalable/apps/
wrapProgram $out/share/biglybt/biglybt \
--prefix PATH : ${lib.makeBinPath [ jre ]}
ln -s $out/share/biglybt/biglybt $out/bin/
runHook postInstall
'';
passthru.updateScript = nix-update-script {
extraArgs = [
"--version-regex"
"^(v[0-9.]+)$"
];
};
meta = {
changelog = "https://github.com/BiglySoftware/BiglyBT/releases/tag/v${version}";
description = "A BitTorrent client based on the Azureus that supports I2P darknet for privacy";
downloadPage = "https://github.com/BiglySoftware/BiglyBT";
homepage = "https://www.biglybt.com/";
license = lib.licenses.gpl3Plus;
platforms = lib.platforms.unix;
sourceProvenance = with lib.sourceTypes; [ binaryNativeCode ];
mainProgram = "biglybt";
maintainers = with lib.maintainers; [ raspher ];
};
}