keka: init at 1.3.2

This commit is contained in:
Emily Trau 2023-07-08 01:09:34 +10:00
parent 5cbff28ae6
commit 7e34e3aaf9
2 changed files with 40 additions and 0 deletions

View file

@ -0,0 +1,38 @@
{ lib
, stdenvNoCC
, fetchurl
, unzip
, makeWrapper
}:
stdenvNoCC.mkDerivation (finalAttrs: {
pname = "keka";
version = "1.3.2";
src = fetchurl {
url = "https://github.com/aonez/Keka/releases/download/v${finalAttrs.version}/Keka-${finalAttrs.version}.zip";
sha256 = "0id8j639kba5yc0z34lgvadzgv9z9s2573nn6dx9m6gd8qpnk2x7";
};
dontUnpack = true;
nativeBuildInputs = [ unzip makeWrapper ];
installPhase = ''
runHook preInstall
mkdir -p $out/Applications $out/bin
unzip -d $out/Applications $src
makeWrapper $out/Applications/Keka.app/Contents/MacOS/Keka $out/bin/keka \
--add-flags "--cli"
runHook postInstall
'';
meta = with lib; {
description = "macOS file archiver";
homepage = "https://www.keka.io";
license = licenses.unfree;
sourceProvenance = with lib.sourceTypes; [ binaryNativeCode ];
maintainers = with maintainers; [ emilytrau Enzime ];
platforms = platforms.darwin;
};
})

View file

@ -3706,6 +3706,8 @@ with pkgs;
kavita = callPackage ../servers/web-apps/kavita { };
keka = callPackage ../tools/compression/keka { };
kord = callPackage ../applications/misc/kord { };
lastpass-cli = callPackage ../tools/security/lastpass-cli { };