From e7b6d7f146d4d538617545cbe538695bf4685dd0 Mon Sep 17 00:00:00 2001 From: Patryk Niedźwiedziński Date: Fri, 23 Oct 2020 19:09:02 +0200 Subject: Update config --- overlays.nix | 37 ++++++++++++++++++++++++------------- 1 file changed, 24 insertions(+), 13 deletions(-) (limited to 'overlays.nix') 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/ + ''; + }); + }) ] -- cgit 1.4.1