ctucx.git: nixfiles

ctucx' nixfiles

commit ebd6b541d07fdb2d9909804c18b989b0f8716f0a
parent 1f19cb4f1c7e5e0f221e3f8f7236d6aeb16ebfd0
Author: Leah (ctucx) <leah@ctu.cx>
Date: Mon, 4 Apr 2022 12:22:42 +0200

pkgs/macApps: add "Thunderbird"
1 file changed, 34 insertions(+), 0 deletions(-)
A
pkgs/macApps/Thunderbird.nix
|
34
++++++++++++++++++++++++++++++++++
diff --git a/pkgs/macApps/Thunderbird.nix b/pkgs/macApps/Thunderbird.nix
@@ -0,0 +1,34 @@
+{ stdenv, fetchurl, undmg, ... }:
+
+let
+  ThunderbirdIcon = fetchurl {
+    name   = "Thnderbird.icns";
+    url    = "https://media.macosicons.com/parse/files/macOSicons/d05f6c9df12594a119f87ba6b30d663f_Thunderbird.icns";
+    sha256 = "10hy7ni44azyc2glgw5dc1mxyvclxw4jxfa86b0flhyhnzcbcrfy";
+  };
+
+in stdenv.mkDerivation rec {
+  pname   = "Thunderbird";
+  version = "91.7.0";
+
+  buildInputs  = [ undmg ];
+  sourceRoot   = ".";
+  phases       = [ "unpackPhase" "installPhase" ];
+  installPhase = ''
+    mkdir -p "$out/Applications"
+    cp -r Thunderbird.app "$out/Applications/Thunderbird.app"
+    cp -r ${ThunderbirdIcon} "$out/Applications/Thunderbird.app/Contents/Resources/thunderbird.icns"
+  '';
+
+  src = fetchurl {
+    name   = "Thunderbird-${version}.dmg";
+    url    = "https://download-installer.cdn.mozilla.net/pub/thunderbird/releases/${version}/mac/en-US/Thunderbird%20${version}.dmg";
+    sha256 = "0k1m66m6mmjr4044yc223i59sns35p3wsn4hlc64arnrpf24fl6q";
+  };
+
+#  meta = with stdenv.lib; {
+#    description = "Thunderbird is a free email application that’s easy to set up and customize - and it’s loaded with great features!";
+#    homepage    = "https://www.thunderbird.net/en-US";
+#    platforms   = platforms.darwin;
+#  };
+}