From 1d0296c209d9097e57cda489f3252795afb9151a Mon Sep 17 00:00:00 2001 From: Donovan Glover Date: Sat, 3 Aug 2024 14:32:56 -0400 Subject: [PATCH] overlays: Format with nixfmt-rfc-style --- overlays/ironbar.nix | 12 +++++++----- overlays/neovim-unwrapped.nix | 15 +++++++++------ overlays/rofi-wayland-unwrapped.nix | 4 +--- 3 files changed, 17 insertions(+), 14 deletions(-) diff --git a/overlays/ironbar.nix b/overlays/ironbar.nix index 14dde1a1..cf7aa93d 100644 --- a/overlays/ironbar.nix +++ b/overlays/ironbar.nix @@ -9,10 +9,12 @@ final: prev: { hash = "sha256-Se+Pg81W8R+SFGFlhF1dU+NnMWSdLo3nC9TdPHa2IL4="; }; - cargoDeps = oldAttrs.cargoDeps.overrideAttrs (prev.lib.const { - name = "${oldAttrs.pname}-${version}-vendor.tar.gz"; - inherit src; - outputHash = "sha256-VkSznG2REXNhUKEVWwqlfA7BF9zXC+fxTgNeRfYaHi4="; - }); + cargoDeps = oldAttrs.cargoDeps.overrideAttrs ( + prev.lib.const { + name = "${oldAttrs.pname}-${version}-vendor.tar.gz"; + inherit src; + outputHash = "sha256-VkSznG2REXNhUKEVWwqlfA7BF9zXC+fxTgNeRfYaHi4="; + } + ); }); } diff --git a/overlays/neovim-unwrapped.nix b/overlays/neovim-unwrapped.nix index 55c466c5..cdc95ce1 100644 --- a/overlays/neovim-unwrapped.nix +++ b/overlays/neovim-unwrapped.nix @@ -1,10 +1,13 @@ final: prev: { neovim-unwrapped = prev.neovim-unwrapped.overrideAttrs (oldAttrs: { - postInstall = (oldAttrs.postInstall or "") + '' - substituteInPlace $out/share/applications/nvim.desktop \ - --replace "TryExec=nvim" "" \ - --replace "Terminal=true" "Terminal=false" \ - --replace "Exec=nvim %F" "Exec=kitty nvim %F" - ''; + postInstall = + (oldAttrs.postInstall or "") + # bash + + '' + substituteInPlace $out/share/applications/nvim.desktop \ + --replace "TryExec=nvim" "" \ + --replace "Terminal=true" "Terminal=false" \ + --replace "Exec=nvim %F" "Exec=kitty nvim %F" + ''; }); } diff --git a/overlays/rofi-wayland-unwrapped.nix b/overlays/rofi-wayland-unwrapped.nix index 99b8164b..943f83ad 100644 --- a/overlays/rofi-wayland-unwrapped.nix +++ b/overlays/rofi-wayland-unwrapped.nix @@ -1,7 +1,5 @@ final: prev: { rofi-wayland-unwrapped = prev.rofi-wayland-unwrapped.overrideAttrs (oldAttrs: { - patches = (oldAttrs.patches or [ ]) ++ [ - ../assets/rofi-wayland-fix-touchpad-scrolling.patch - ]; + patches = (oldAttrs.patches or [ ]) ++ [ ../assets/rofi-wayland-fix-touchpad-scrolling.patch ]; }); }