blob: 71e979fa0c203337eb6b6ed7a5a32cbbc1390fd7 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
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;
};
})
|