summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorSander van der Burg <svanderburg@gmail.com>2021-07-21 23:26:39 +0200
committerGitHub <noreply@github.com>2021-07-21 23:26:39 +0200
commitd820841025cde4bb5acc5c3c3dbe990fbdd64c1e (patch)
tree8bc5beef3fe2587d51ae5c00fb5a43e9abaea448 /pkgs
parentf4860dc78548a1b77d60e6d039e77d4e0375bd30 (diff)
parentc4508944773a579423c370b81860b175059ab540 (diff)
downloadnixpkgs-d820841025cde4bb5acc5c3c3dbe990fbdd64c1e.tar
nixpkgs-d820841025cde4bb5acc5c3c3dbe990fbdd64c1e.tar.gz
nixpkgs-d820841025cde4bb5acc5c3c3dbe990fbdd64c1e.tar.bz2
nixpkgs-d820841025cde4bb5acc5c3c3dbe990fbdd64c1e.tar.lz
nixpkgs-d820841025cde4bb5acc5c3c3dbe990fbdd64c1e.tar.xz
nixpkgs-d820841025cde4bb5acc5c3c3dbe990fbdd64c1e.tar.zst
nixpkgs-d820841025cde4bb5acc5c3c3dbe990fbdd64c1e.zip
Merge pull request #130848 from svanderburg/add-lha
lha: init at 2021-01-07
Diffstat (limited to 'pkgs')
-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 00000000000..f6b5c2bd135
--- /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 22ea10d466a..0ffd0979998 100644
--- a/pkgs/top-level/all-packages.nix
+++ b/pkgs/top-level/all-packages.nix
@@ -6355,6 +6355,8 @@ in
 
   lf = callPackage ../tools/misc/lf {};
 
+  lha = callPackage ../tools/archivers/lha { };
+
   lhasa = callPackage ../tools/compression/lhasa {};
 
   libcpuid = callPackage ../tools/misc/libcpuid { };