_7zz 0 -> 1 attrpath: _7zz Checking auto update branch... [version] [version] skipping because derivation has updateScript [rustCrateVersion] [rustCrateVersion] No cargoSha256 found [golangModuleVersion] [golangModuleVersion] Not a buildGoModule package with vendorSha256 [updateScript] [updateScript] Success [updateScript] this derivation will be built: /nix/store/czalgnzysgq24hzdwrz8n63fwhs0dpxh-packages.json.drv building '/nix/store/czalgnzysgq24hzdwrz8n63fwhs0dpxh-packages.json.drv'... Going to be running update for following packages: - 7zz-22.01 Press Enter key to continue... Running update for: - 7zz-22.01: UPDATING ... - 7zz-22.01: DONE. Packages updated! [quotedUrls] [quotedUrls] nothing found to replace Diff after rewrites: diff --git a/pkgs/tools/archivers/7zz/default.nix b/pkgs/tools/archivers/7zz/default.nix index 150230f775a..df6e3b89444 100644 --- a/pkgs/tools/archivers/7zz/default.nix +++ b/pkgs/tools/archivers/7zz/default.nix @@ -26,13 +26,13 @@ let in stdenv.mkDerivation rec { pname = "7zz"; - version = "22.01"; + version = "22.00"; src = fetchurl { url = "https://7-zip.org/a/7z${lib.replaceStrings [ "." ] [ "" ] version}-src.tar.xz"; hash = { - free = "sha256-mp3cFXOEiVptkUdD1+X8XxwoJhBGs+Ns5qk3HBByfLg="; - unfree = "sha256-OTCYcwxwBCOSr4CJF+dllF3CQ33ueq48/MSWbrkg+8U="; + free = "sha256-QzGZgPxHobGwstFfVRtb4V+hqMM7dMIy2/EZcJ2aZe8="; + unfree = "sha256-QJafYB6Gr/Saqgug31zm/Tl89+JoOoS1kbAIHkYe9nU="; }.${if enableUnfree then "unfree" else "free"}; downloadToTemp = (!enableUnfree); # remove the unRAR related code from the src drv Old version "22.01"" not present in master derivation file with contents: { stdenv , lib , fetchurl # Only used for Linux's x86/x86_64 , uasm , useUasm ? (stdenv.isLinux && stdenv.hostPlatform.isx86) # RAR code is under non-free unRAR license # see the meta.license section below for more details , enableUnfree ? false # For tests , _7zz , testers }: let makefile = { aarch64-darwin = "../../cmpl_mac_arm64.mak"; x86_64-darwin = "../../cmpl_mac_x64.mak"; aarch64-linux = "../../cmpl_gcc_arm64.mak"; i686-linux = "../../cmpl_gcc_x86.mak"; x86_64-linux = "../../cmpl_gcc_x64.mak"; }.${stdenv.hostPlatform.system} or "../../cmpl_gcc.mak"; # generic build in stdenv.mkDerivation rec { pname = "7zz"; version = "22.01"; src = fetchurl { url = "https://7-zip.org/a/7z${lib.replaceStrings [ "." ] [ "" ] version}-src.tar.xz"; hash = { free = "sha256-mp3cFXOEiVptkUdD1+X8XxwoJhBGs+Ns5qk3HBByfLg="; unfree = "sha256-OTCYcwxwBCOSr4CJF+dllF3CQ33ueq48/MSWbrkg+8U="; }.${if enableUnfree then "unfree" else "free"}; downloadToTemp = (!enableUnfree); # remove the unRAR related code from the src drv # > the license requires that you agree to these use restrictions, # > or you must remove the software (source and binary) from your hard disks # https://fedoraproject.org/wiki/Licensing:Unrar postFetch = lib.optionalString (!enableUnfree) '' mkdir tmp tar xf $downloadedFile -C ./tmp rm -r ./tmp/CPP/7zip/Compress/Rar* tar cfJ $out -C ./tmp . \ --sort=name \ --mtime="@$SOURCE_DATE_EPOCH" \ --owner=0 --group=0 --numeric-owner \ --pax-option=exthdr.name=%d/PaxHeaders/%f,delete=atime,delete=ctime ''; }; sourceRoot = "."; patches = [ ./fix-build-on-darwin.patch ]; patchFlags = [ "-p0" ]; NIX_CFLAGS_COMPILE = lib.optionals stdenv.isDarwin [ "-Wno-deprecated-copy-dtor" ]; inherit makefile; makeFlags = [ "CC=${stdenv.cc.targetPrefix}cc" "CXX=${stdenv.cc.targetPrefix}c++" ] ++ lib.optionals useUasm [ "MY_ASM=uasm" ] # We need at minimum 10.13 here because of utimensat, however since # we need a bump anyway, let's set the same minimum version as the one in # aarch64-darwin so we don't need additional changes for it ++ lib.optionals stdenv.isDarwin [ "MACOSX_DEPLOYMENT_TARGET=10.16" ] # it's the compression code with the restriction, see DOC/License.txt ++ lib.optionals (!enableUnfree) [ "DISABLE_RAR_COMPRESS=true" ]; nativeBuildInputs = lib.optionals useUasm [ uasm ]; enableParallelBuilding = true; preBuild = "cd CPP/7zip/Bundles/Alone2"; installPhase = '' runHook preInstall install -Dm555 -t $out/bin b/*/7zz install -Dm444 -t $out/share/doc/${pname} ../../../../DOC/*.txt runHook postInstall ''; passthru = { updateScript = ./update.sh; tests.version = testers.testVersion { package = _7zz; command = "7zz --help"; }; }; meta = with lib; { description = "Command line archiver utility"; homepage = "https://7-zip.org"; license = with licenses; # 7zip code is largely lgpl2Plus # CPP/7zip/Compress/LzfseDecoder.cpp is bsd3 [ lgpl2Plus /* and */ bsd3 ] ++ # and CPP/7zip/Compress/Rar* are unfree with the unRAR license restriction # the unRAR compression code is disabled by default lib.optionals enableUnfree [ unfree ]; maintainers = with maintainers; [ anna328p peterhoeg jk ]; platforms = platforms.unix; mainProgram = "7zz"; }; }