torrent7z: remove (#516566)

This commit is contained in:
Marcin Serwin
2026-06-04 09:36:15 +00:00
committed by GitHub
2 changed files with 1 additions and 58 deletions

View File

@@ -1,58 +0,0 @@
{
lib,
stdenv,
fetchFromGitHub,
fetchpatch,
ncurses,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "torrent7z";
version = "1.3";
src = fetchFromGitHub {
owner = "BubblesInTheTub";
repo = "torrent7z";
rev = finalAttrs.version;
sha256 = "Y2tr0+z9uij4Ifi6FfWRN24BwcDXUZKVLkLtKUiVjU4=";
};
patches = [
(fetchpatch {
name = "fix-gcc10-compilation.patch"; # Fix compilation on GCC 10. This patch is included on the latest commit
url = "https://github.com/paulyc/torrent7z/commit/5958f42a364c430b3ed4ac68911bbbea1f967fc4.patch";
sha256 = "vJOv1sG9XwTvvxQiWew0H5ALoUb9wIAouzTsTvKHuPI=";
})
];
buildInputs = [ ncurses ];
hardeningDisable = [ "format" ];
postPatch = ''
# Remove non-free RAR source code
# (see DOC/License.txt, https://fedoraproject.org/wiki/Licensing:Unrar)
rm -r linux_src/p7zip_4.65/CPP/7zip/Compress/Rar*
find . -name makefile'*' -exec sed -i '/Rar/d' {} +
'';
preConfigure = ''
mkdir linux_src/p7zip_4.65/bin
cd linux_src/p7zip_4.65/CPP/7zip/Bundles/Alone
'';
installPhase = ''
mkdir -p $out/bin
cp ../../../../bin/t7z $out/bin
'';
meta = {
homepage = "https://github.com/BubblesInTheTub/torrent7z";
description = "Fork of torrent7z, viz a derivative of 7zip that produces invariant .7z archives for torrenting";
platforms = lib.platforms.linux;
maintainers = with lib.maintainers; [ cirno-999 ];
mainProgram = "t7z";
# RAR code is under non-free UnRAR license, but we remove it
license = lib.licenses.gpl3Only;
};
})

View File

@@ -2153,6 +2153,7 @@ mapAliases {
tooling-language-server = deputy; # Added 2025-06-22
tor-browser-bundle-bin = throw "'tor-browser-bundle-bin' has been renamed to/replaced by 'tor-browser'"; # Converted to throw 2025-10-27
tora = throw "'tora' has been removed due to outdated KF5 dependencies."; # Added 2026-05-01
torrent7z = throw "torrent7z is unmaintained and used a p7zip version from 2009. Consider using p7zip with the arguments to remove entropy instead"; # added 2026-05-09
tracker = throw "'tracker' has been renamed to/replaced by 'tinysparql'"; # Converted to throw 2025-10-27
tracker-miners = throw "'tracker-miners' has been renamed to/replaced by 'localsearch'"; # Converted to throw 2025-10-27
transfig = throw "'transfig' has been renamed to/replaced by 'fig2dev'"; # Converted to throw 2025-10-27