7zz: init at 21.01

This commit is contained in:
Anna Kudriavtsev 2021-03-12 04:44:32 -08:00 committed by Jonathan Ringer
parent 33d030bfa0
commit 3bfce611c3
2 changed files with 49 additions and 0 deletions

View File

@ -0,0 +1,47 @@
{ lib, stdenv, fetchurl, autoPatchelfHook }:
let platform = if stdenv.isi686 then "x86"
else if stdenv.isx86_64 then "x64"
else if stdenv.isAarch32 then "arm"
else if stdenv.isAarch64 then "arm64"
else throw "Unsupported architecture";
url = "https://7-zip.org/a/7z2101-linux-${platform}.tar.xz";
hashes = {
x86 = "0k6vg85ld8i2pcv5sv3xbvf3swqh9qj8hf2jcpadssys3yyidqyj";
x64 = "1yfanx98fizj8d2s87yxgsy30zydx7h5w9wf4wy3blgsp0vkbjb3";
arm = "04iah9vijm86r8rbkhxig86fx3lpag4xi7i3vq7gfrlwkymclhm1";
arm64 = "0a26ginpb22aydcyvffxpbi7lxh4sgs9gb6cj96qqx7cnf7bk2ri";
};
sha256 = hashes."${platform}";
in stdenv.mkDerivation {
pname = "7zz";
version = "21.01";
src = fetchurl { inherit url sha256; };
sourceRoot = ".";
nativeBuildInputs = [ autoPatchelfHook ];
buildInputs = [ stdenv.cc.cc.lib ];
dontBuild = true;
installPhase = ''
runHook preInstall
install -D -t $out/bin 7zz
runHook postInstall
'';
meta = with lib; {
description = "Command line archiver utility";
homepage = "https://www.7-zip.org";
# source not released yet. will be under LGPL 2.1+ with RAR exception
license = licenses.unfree;
platforms = [ "i686-linux" "x86_64-linux" "aarch64-linux" "armv7l-linux" ];
maintainers = with maintainers; [ anna328p ];
};
}

View File

@ -633,6 +633,8 @@ in
_6tunnel = callPackage ../tools/networking/6tunnel { };
_7zz = callPackage ../tools/archivers/7zz { };
_9pfs = callPackage ../tools/filesystems/9pfs { };
a2ps = callPackage ../tools/text/a2ps { };