about summary refs log tree commit diff
path: root/overlays.nix
diff options
context:
space:
mode:
Diffstat (limited to 'overlays.nix')
-rw-r--r--overlays.nix37
1 files changed, 24 insertions, 13 deletions
diff --git a/overlays.nix b/overlays.nix
index 56da0df..87042fc 100644
--- a/overlays.nix
+++ b/overlays.nix
@@ -1,16 +1,27 @@
 [
   (self: super:
-let rev1 = "bd7360b";
-in {
-  neovim-unwrapped = super.neovim-unwrapped.overrideAttrs (oldAttrs: rec {
-    version = "nightly-${rev1}";
-    src = super.fetchFromGitHub rec {
-      name = "source-${oldAttrs.pname}-${version}-${rev1}";
-      owner = "neovim";
-      repo = "neovim";
-      rev = rev1;
-      sha256 = "0lg9hwvcaiwj9z6wp9rw80czfs7l3bwvcc916fz87jxafp683m37";
-    };
-  });
-})
+  let rev1 = "bd7360b";
+  in {
+    neovim-unwrapped = super.neovim-unwrapped.overrideAttrs (oldAttrs: rec {
+      version = "nightly-${rev1}";
+      src = super.fetchFromGitHub rec {
+        name = "source-${oldAttrs.pname}-${version}-${rev1}";
+        owner = "neovim";
+        repo = "neovim";
+        rev = rev1;
+        sha256 = "0lg9hwvcaiwj9z6wp9rw80czfs7l3bwvcc916fz87jxafp683m37";
+      };
+    });
+    teams = super.teams.overrideAttrs (oldAttrs: rec {
+      installPhase = ''
+        mkdir -p $out/{opt,bin}
+        rm share/teams/resources/app.asar.unpacked/node_modules/slimcore/bin/rect-overlay
+        mv share/teams $out/opt/
+        mv share $out/share
+        substituteInPlace $out/share/applications/teams.desktop \
+        --replace /usr/bin/ $out/bin/
+        ln -s $out/opt/teams/teams $out/bin/
+      '';
+    });
+  })
 ]