Skip to content

lzham: 1.0 -> 1.0-unstable-2023-05-14#455885

Merged
LordGrimmauld merged 1 commit intoNixOS:masterfrom
iedame:cmake4/lzham-devel
Nov 4, 2025
Merged

lzham: 1.0 -> 1.0-unstable-2023-05-14#455885
LordGrimmauld merged 1 commit intoNixOS:masterfrom
iedame:cmake4/lzham-devel

Conversation

@iedame
Copy link
Contributor

@iedame iedame commented Oct 26, 2025

Updated lzham to latest unstable devel, according to upstream is improved and 100% backwards compatible with lzham v1.0.

I changed the installPhase so it installs the lib and include and then move lzhamtest bin to correct place.
result folder look like this:

.
└── result
    ├── bin
    │   └── lzhamtest
    ├── include
    │   ├── lzham_dynamic_lib.h
    │   ├── lzham_exports.inc
    │   ├── lzham.h
    │   ├── lzham_static_lib.h
    │   └── zlib.h
    └── lib
        ├── liblzhamcomp.so
        ├── liblzhamdecomp.so
        └── liblzhamdll.so

Result from lzhamtest:

LZHAM Codec - x64 Command Line Test App - Compiled Jan  1 1980 00:00:00
Expecting LZHAM DLL Version 0x1011
Using static libraries.
Loaded LZHAM DLL version 0x1011

Usage: [options] [mode] inpath/infile [outfile]

Modes:
c - Compress "infile" to "outfile"
d - Decompress "infile" to "outfile"
a - Recursively compress all files under "inpath"

Options:
-m[0-4] - Compression level: 0=fastest, 1=faster, 2=default, 3=better, 4=uber
          Default is uber (4).
-d[15-29] - Set log2 dictionary size, max. is 26 on x86 platforms, 29 on x64.
          Default is 26 (64MB) on x86, 28 (256MB) on x64.
-c - Do not compute or verify adler32 checksum during decompression (faster).
-u - Use unbuffered decompression on files that can fit into memory.
     Unbuffered decompression is faster, but may have more I/O overhead.
-t[0-64] - Number of extra compression helper threads. Default=# CPU's-1.
           Note: The total number of threads will be 1 + num_helper_threads,
           because the main thread is counted separately.
-v - Immediately decompress compressed file after compression for verification.
-x - Extreme parsing, for slight compression gain (Uber only, MUCH slower).
-x# - Same as -x, except sets the max # of best arrivals (2-8), higher=better compression
-o - Permit the compressor to trade off decompression rate for higher ratios.
     Note: This flag can drop the decompression rate by 30% or more.
-e - Enable deterministic parsing for slightly higher compression and
     predictable output files when enabled, but less scalability.
     The default is disabled, so the generated output data may slightly vary
     between runs when multithreaded compression is enabled.
-afilename Enable delta compression using the specified seed file.
           The same seed file MUST be used for compression/decompression.
-r - Use randomized parameters for each file.
-h[0-20] - Set Huffman table update frequency. 0=Internal def, Def=8, higher=faster.
 Lower settings=slower decompression, but higher ratio. Note 1=impractically slow.
-b - Force single threaded parsing for higher compression ratios (slower).
-F - Use low memory hash finder (16-bit vs. 24-bit hashing)
-f# - Set extreme parser's "fast bytes" setting (16-257, default=128, lower=faster)

LZHAM simple memory to memory compression test
Uncompressed size: 88
Compressed size: 39
Decompress time: 0.000014 secs
Compression test succeeded.

Things done

  • Built on platform:
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • Tested, as applicable:
  • Ran nixpkgs-review on this PR. See nixpkgs-review usage.
  • Tested basic functionality of all binary files, usually in ./result/bin/.
  • Nixpkgs Release Notes
    • Package update: when the change is major or breaking.
  • NixOS Release Notes
    • Module addition: when adding a new NixOS module.
    • Module update: when the change is significant.
  • Fits CONTRIBUTING.md, pkgs/README.md, maintainers/README.md and other READMEs.

Add a 👍 reaction to pull requests you find important.

@nixpkgs-ci nixpkgs-ci bot added 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 1 This PR causes 1 package to rebuild on Linux. labels Oct 26, 2025
@iedame

This comment was marked as outdated.

@nixpkgs-ci nixpkgs-ci bot added the 9.needs: reviewer This PR currently has no reviewers requested and needs attention. label Oct 26, 2025
@iedame iedame added the 0.kind: ZHF Fixes Fixes during the Zero Hydra Failures (ZHF) campaign label Nov 3, 2025
@nixpkgs-ci nixpkgs-ci bot removed the 9.needs: reviewer This PR currently has no reviewers requested and needs attention. label Nov 4, 2025
@iedame iedame force-pushed the cmake4/lzham-devel branch from ff9599e to 9278a4d Compare November 4, 2025 18:28
@iedame
Copy link
Contributor Author

iedame commented Nov 4, 2025

@LordGrimmauld All suggested changes applied, thank you for the review! I'm still relatively new to nixpkgs so I appreciate the explanations.

@iedame

This comment was marked as outdated.

@iedame iedame force-pushed the cmake4/lzham-devel branch from 9278a4d to 3cce15b Compare November 4, 2025 19:14
@iedame iedame requested a review from LordGrimmauld November 4, 2025 19:17
Copy link
Contributor

@LordGrimmauld LordGrimmauld left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thank you :)

@LordGrimmauld LordGrimmauld added this pull request to the merge queue Nov 4, 2025
@nixpkgs-ci nixpkgs-ci bot added the 12.approvals: 1 This PR was reviewed and approved by one person. label Nov 4, 2025
Merged via the queue into NixOS:master with commit 590a11b Nov 4, 2025
29 of 33 checks passed
@iedame iedame deleted the cmake4/lzham-devel branch November 4, 2025 19:31
@iedame iedame changed the title lzham: 1.0 -> 1.1-unstable-2023-05-14 lzham: 1.0 -> 1.0-unstable-2023-05-14 Nov 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

0.kind: ZHF Fixes Fixes during the Zero Hydra Failures (ZHF) campaign 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. 10.rebuild-linux: 1 This PR causes 1 package to rebuild on Linux. 12.approvals: 1 This PR was reviewed and approved by one person.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants