···1+{stdenv, lib, fetchFromGitHub, autoreconfHook}:
2+3+stdenv.mkDerivation {
4+ pname = "lha";
5+ version = "unstable-2021-01-07";
6+7+ src = fetchFromGitHub {
8+ owner = "jca02266";
9+ repo = "lha";
10+ rev = "03475355bc6311f7f816ea9a88fb34a0029d975b";
11+ sha256 = "18w2x0g5yq89yxkxh1fmb05lz4hw7a3b4jmkk95gvh11mwbbr5lm";
12+ };
13+14+ nativeBuildInputs = [ autoreconfHook ];
15+16+ meta = with lib; {
17+ description = "LHa is an archiver and compressor using the LZSS and Huffman encoding compression algorithms";
18+ platforms = platforms.unix;
19+ maintainers = [ maintainers.sander ];
20+ # Some of the original LhA code has been rewritten and the current author
21+ # considers adopting a "true" free and open source license for it.
22+ # However, old code is still covered by the original LHa license, which is
23+ # not a free software license (it has additional requirements on commercial
24+ # use).
25+ license = licenses.unfree;
26+ };
27+}