Running nixpkgs-update (https://nix-community.org/update-bot/) with UPDATE_INFO: _7zip-zstd-rar 25.01-v1.5.7-R4 -> 26.01-v1.5.7-R1 https://github.com/mcmilk/7-Zip-zstd/releases attrpath: _7zip-zstd-rar Checking auto update branch... [version] [version] skipping because derivation has updateScript [rustCrateVersion] [rustCrateVersion] No cargoHash found [golangModuleVersion] [golangModuleVersion] Not a buildGoModule package with vendorHash [npmDepsVersion] [npmDepsVersion] No npmDepsHash [updateScript] [updateScript] Success [updateScript] this derivation will be built: /nix/store/g1kksbq3y7zk61w8wvkj2qk0v2bh4xx4-packages.json.drv building '/nix/store/g1kksbq3y7zk61w8wvkj2qk0v2bh4xx4-packages.json.drv'... Going to be running update for following packages: - 7zip-zstd-25.01-v1.5.7-R4 Press Enter key to continue... Running update for: Enqueuing group of 1 packages - 7zip-zstd-25.01-v1.5.7-R4: UPDATING ... - 7zip-zstd-25.01-v1.5.7-R4: DONE. Packages updated! Diff after rewrites: diff --git a/pkgs/by-name/_7/_7zip-zstd/package.nix b/pkgs/by-name/_7/_7zip-zstd/package.nix index 2614b4b43472..a8017ed31a25 100644 --- a/pkgs/by-name/_7/_7zip-zstd/package.nix +++ b/pkgs/by-name/_7/_7zip-zstd/package.nix @@ -16,7 +16,7 @@ }: stdenv.mkDerivation (finalAttrs: { pname = "7zip-zstd"; - version = "25.01-v1.5.7-R4"; + version = "26.01-v1.5.7-R1"; src = fetchFromGitHub { owner = "mcmilk"; @@ -24,9 +24,9 @@ stdenv.mkDerivation (finalAttrs: { tag = "v${finalAttrs.version}"; hash = if enableUnfree then - "sha256-qP4L5PIG7CHsmYbRock+cbCOGdgujUFG4LHenvvlqzw=" + "sha256-P6kwg3McroMwqB5bryfoS9dIBsxcd84bVzsjUv5Bk5k=" else - "sha256-R9AUWL35TPh0anyRDhnF28ZYG9FeOxntVIwnnW9e2xA="; + "sha256-WowqcjcA/DUwj7DJrKDTYKpCDWd/tTIZ3yiuBgqXpmU="; # 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 No auto update branch exists Old version 25.01-v1.5.7-R4" not present in master derivation file with contents: { lib, stdenv, fetchFromGitHub, makeWrapper, asmc-linux, useAsmc ? !useUasm && stdenv.hostPlatform.isx86 && stdenv.hostPlatform.isLinux, uasm, useUasm ? enableUnfree && stdenv.hostPlatform.isx86 && (stdenv.hostPlatform.isLinux || stdenv.hostPlatform.isWindows), _experimental-update-script-combinators, nix-update-script, enableUnfree ? false, }: stdenv.mkDerivation (finalAttrs: { pname = "7zip-zstd"; version = "26.01-v1.5.7-R1"; src = fetchFromGitHub { owner = "mcmilk"; repo = "7-Zip-zstd"; tag = "v${finalAttrs.version}"; hash = if enableUnfree then "sha256-P6kwg3McroMwqB5bryfoS9dIBsxcd84bVzsjUv5Bk5k=" else "sha256-WowqcjcA/DUwj7DJrKDTYKpCDWd/tTIZ3yiuBgqXpmU="; # 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) '' rm -r $out/CPP/7zip/Compress/Rar* ''; }; nativeBuildInputs = lib.optionals (!stdenv.hostPlatform.isWindows) [ makeWrapper ] ++ lib.optionals useAsmc [ asmc-linux ] ++ lib.optionals useUasm [ uasm ]; outputs = [ "out" "doc" ]; makeFlags = [ "CC=${stdenv.cc.targetPrefix}cc" "CXX=${stdenv.cc.targetPrefix}c++" ] ++ lib.optionals useAsmc [ "MY_ASM=asmc" ] ++ lib.optionals useUasm [ "MY_ASM=uasm" ] ++ lib.optionals (stdenv.hostPlatform.isx86 && !useAsmc && !useUasm) [ "USE_ASM=" ] # it's the compression code with the restriction, see DOC/License.txt ++ lib.optionals (!enableUnfree) [ "DISABLE_RAR_COMPRESS=true" ] ++ lib.optionals (stdenv.cc.isClang) [ "FLAGS_FLTO=-flto=thin" ] ++ lib.optionals (stdenv.hostPlatform.isMinGW) [ "IS_MINGW=1" "MSYSTEM=1" ]; strictDeps = true; __structuredAttrs = true; enableParallelBuilding = true; postPatch = '' sed -i 's/-Werror//g' CPP/7zip/7zip_gcc.mak '' + lib.optionalString stdenv.hostPlatform.isMinGW '' substituteInPlace CPP/7zip/7zip_gcc.mak C/7zip_gcc_c.mak \ --replace-fail windres.exe ${stdenv.cc.targetPrefix}windres ''; buildPhase = let makefile = "../../cmpl_${ if stdenv.hostPlatform.isDarwin then "mac" else if stdenv.cc.isClang then "clang" else "gcc" }${ if stdenv.hostPlatform.isx86_64 then "_x64" else if stdenv.hostPlatform.isAarch64 then "_arm64" else if stdenv.hostPlatform.isi686 then "_x86" else "" }.mak"; in '' runHook preBuild for component in Bundles/{Alone,Alone2,Alone7z,Format7zF,SFXCon} UI/Console; do make -j $NIX_BUILD_CORES -C CPP/7zip/$component -f ${makefile} "''${makeFlags[@]}" done runHook postBuild ''; installPhase = let inherit (stdenv.hostPlatform) extensions isWindows; in '' runHook preInstall install -Dt "$out/${if isWindows then "bin" else "lib"}/7zip" \ CPP/7zip/Bundles/Alone/b/*/7za${extensions.executable} \ CPP/7zip/Bundles/Alone2/b/*/7zz${extensions.executable} \ CPP/7zip/Bundles/Alone7z/b/*/7zr${extensions.executable} \ CPP/7zip/Bundles/Format7zF/b/*/7z${extensions.sharedLibrary} \ CPP/7zip/UI/Console/b/*/7z${extensions.executable} install -D CPP/7zip/Bundles/SFXCon/b/*/7zCon${extensions.executable} "$out/lib/7zip/7zCon.sfx" ${lib.optionalString (!isWindows) '' mkdir -p "$out/bin" for prog in 7za 7zz 7zr 7z; do makeWrapper "$out/lib/7zip/$prog" \ "$out/bin/$prog" done ''} install -Dt "$out/share/doc/7zip" DOC/*.txt runHook postInstall ''; setupHook = ./setup-hook.sh; passthru.updateScript = _experimental-update-script-combinators.sequence [ (nix-update-script { attrPath = "_7zip-zstd"; extraArgs = [ "--use-github-releases" ]; }) (nix-update-script { attrPath = "_7zip-zstd-rar"; extraArgs = [ "--version=skip" ]; }) ]; meta = { homepage = "https://github.com/mcmilk/7-Zip-zstd"; description = "7-Zip with support for Brotli, Fast-LZMA2, Lizard, LZ4, LZ5 and Zstandard"; changelog = "https://github.com/mcmilk/7-Zip-zstd/releases/tag/v${finalAttrs.version}"; license = with lib.licenses; # p7zip 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 [ unfreeRedistributable ]; maintainers = with lib.maintainers; [ ccicnce113424 ]; platforms = lib.platforms.unix ++ lib.platforms.windows; broken = stdenv.hostPlatform.isWindows; # waiting for fixes in 26.00 mainProgram = "7z"; }; })