about summary refs log tree commit diff
path: root/pkgs/applications/misc/appcleaner
diff options
context:
space:
mode:
authorEmily Trau <emily@downunderctf.com>2023-07-08 23:51:03 +1000
committerEmily Trau <emily@downunderctf.com>2023-07-08 23:51:03 +1000
commit296682e70cc2dff231cde3b9cfde8e32634a9cfa (patch)
tree3eefa28ec1f1b634925bdc271287f1b4ca18801c /pkgs/applications/misc/appcleaner
parenta0930d1a13200ad760f156a7bfbfcb79a83ab32a (diff)
appcleaner: init at 3.6.8
Diffstat (limited to 'pkgs/applications/misc/appcleaner')
-rw-r--r--pkgs/applications/misc/appcleaner/default.nix35
1 files changed, 35 insertions, 0 deletions
diff --git a/pkgs/applications/misc/appcleaner/default.nix b/pkgs/applications/misc/appcleaner/default.nix
new file mode 100644
index 0000000000000..eff32c76f988a
--- /dev/null
+++ b/pkgs/applications/misc/appcleaner/default.nix
@@ -0,0 +1,35 @@
+{ 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 = with lib; {
+    description = "Uninstall unwanted apps";
+    homepage = "https://freemacsoft.net/appcleaner";
+    license = licenses.unfree;
+    sourceProvenance = with lib.sourceTypes; [ binaryNativeCode ];
+    maintainers = with maintainers; [ emilytrau Enzime ];
+    platforms = platforms.darwin;
+  };
+})