blob: d84f642a9bc318929b4e62ea6390b576d1e2df71 (
plain)
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
|
{
lib,
stdenvNoCC,
fetchurl,
unzip,
}:
stdenvNoCC.mkDerivation (finalAttrs: {
pname = "appcleaner";
version = "3.6.8";
src = fetchurl {
url = "https://freemacsoft.net/downloads/AppCleaner_${finalAttrs.version}.zip";
hash = "sha256-4BL3KUQkc8IOfM4zSwAYJSHktmcupoGzSTGxgP6z1r4=";
};
dontUnpack = true;
nativeBuildInputs = [ unzip ];
installPhase = ''
runHook preInstall
mkdir -p $out/Applications
unzip -d $out/Applications $src
runHook postInstall
'';
meta = {
description = "Uninstall unwanted apps";
homepage = "https://freemacsoft.net/appcleaner";
license = lib.licenses.unfree;
sourceProvenance = with lib.sourceTypes; [ binaryNativeCode ];
maintainers = with lib.maintainers; [ emilytrau ];
platforms = lib.platforms.darwin;
};
})
|