nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 stdenvNoCC,
4 fetchurl,
5 unzip,
6}:
7stdenvNoCC.mkDerivation (finalAttrs: {
8 pname = "appcleaner";
9 version = "3.6.8";
10
11 src = fetchurl {
12 url = "https://freemacsoft.net/downloads/AppCleaner_${finalAttrs.version}.zip";
13 hash = "sha256-4BL3KUQkc8IOfM4zSwAYJSHktmcupoGzSTGxgP6z1r4=";
14 };
15 dontUnpack = true;
16
17 nativeBuildInputs = [ unzip ];
18
19 installPhase = ''
20 runHook preInstall
21
22 mkdir -p $out/Applications
23 unzip -d $out/Applications $src
24
25 runHook postInstall
26 '';
27
28 meta = {
29 description = "Uninstall unwanted apps";
30 homepage = "https://freemacsoft.net/appcleaner";
31 license = lib.licenses.unfree;
32 sourceProvenance = with lib.sourceTypes; [ binaryNativeCode ];
33 maintainers = with lib.maintainers; [ emilytrau ];
34 platforms = lib.platforms.darwin;
35 };
36})