summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSander van der Burg <svanderburg@gmail.com>2021-07-22 18:14:27 +0200
committerGitHub <noreply@github.com>2021-07-22 18:14:27 +0200
commit5b526c90ca344f12771b5ffc64c6ca07e9db89df (patch)
tree0377626ca33f2a1b322261a72c7b4f09eb6326a3
parentMerge pull request #131056 from NixOS/backport-131053-to-release-21.05 (diff)
parentlha: init at 2021-07-01 (diff)
downloadnixpkgs-5b526c90ca344f12771b5ffc64c6ca07e9db89df.tar.gz
Merge pull request #130992 from svanderburg/backport-lha
[Backport release-21.05] lha: init at 2021-07-01
-rw-r--r--pkgs/tools/archivers/lha/default.nix27
-rw-r--r--pkgs/top-level/all-packages.nix2
2 files changed, 29 insertions, 0 deletions
diff --git a/pkgs/tools/archivers/lha/default.nix b/pkgs/tools/archivers/lha/default.nix
new file mode 100644
index 000000000000..f6b5c2bd1350
--- /dev/null
+++ b/pkgs/tools/archivers/lha/default.nix
@@ -0,0 +1,27 @@
+{stdenv, lib, fetchFromGitHub, autoreconfHook}:
+
+stdenv.mkDerivation {
+ pname = "lha";
+ version = "unstable-2021-01-07";
+
+ src = fetchFromGitHub {
+ owner = "jca02266";
+ repo = "lha";
+ rev = "03475355bc6311f7f816ea9a88fb34a0029d975b";
+ sha256 = "18w2x0g5yq89yxkxh1fmb05lz4hw7a3b4jmkk95gvh11mwbbr5lm";
+ };
+
+ nativeBuildInputs = [ autoreconfHook ];
+
+ meta = with lib; {
+ description = "LHa is an archiver and compressor using the LZSS and Huffman encoding compression algorithms";
+ platforms = platforms.unix;
+ maintainers = [ maintainers.sander ];
+ # Some of the original LhA code has been rewritten and the current author
+ # considers adopting a "true" free and open source license for it.
+ # However, old code is still covered by the original LHa license, which is
+ # not a free software license (it has additional requirements on commercial
+ # use).
+ license = licenses.unfree;
+ };
+}
diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix
index c9267112f6f8..f1a9b11728aa 100644
--- a/pkgs/top-level/all-packages.nix
+++ b/pkgs/top-level/all-packages.nix
@@ -6127,6 +6127,8 @@ in
lf = callPackage ../tools/misc/lf {};
+ lha = callPackage ../tools/archivers/lha { };
+
lhasa = callPackage ../tools/compression/lhasa {};
libcpuid = callPackage ../tools/misc/libcpuid { };