diff --git a/dotfiles/config/taffybar/profile.nix b/dotfiles/config/taffybar/profile.nix new file mode 100644 index 00000000..202508a4 --- /dev/null +++ b/dotfiles/config/taffybar/profile.nix @@ -0,0 +1,15 @@ +let + pkgs = (import ./base.nix); + profiledHaskellPackages = pkgs.haskellPackages.override (old: { + overrides = pkgs.lib.composeExtensions (old.overrides or (_: _: {})) (self: super: { + mkDerivation = args: super.mkDerivation (args // { + enableLibraryProfiling = true; + }); + }); + }); +in pkgs.haskellPackages.shellFor { + packages = _: [ + (pkgs.haskell.lib.doBenchmark pkgs.haskellPackages.imalison-taffybar) pkgs.haskellPackages.taffybar + ]; +} + diff --git a/dotfiles/config/taffybar/stack.yaml b/dotfiles/config/taffybar/stack.yaml index eb53d87a..91bd2fa9 100644 --- a/dotfiles/config/taffybar/stack.yaml +++ b/dotfiles/config/taffybar/stack.yaml @@ -14,40 +14,22 @@ packages: # extra-dep: true extra-deps: - ConfigFile-1.1.4 -- X11-1.8 -- X11-xft-0.3.1 -- containers-0.5.11.0 -- dbus-1.2.1 +- broadcast-chan-0.2.0.2 - dbus-hslogger-0.1.0.1 -- gi-atk-2.0.20 - gi-cairo-connector-0.0.1 - gi-cairo-render-0.0.1 - gi-dbusmenu-0.4.6 - gi-dbusmenugtk3-0.4.7 -- gi-gdk-3.0.21 -- gi-gdkpixbuf-2.0.22 -- gi-gdkx11-3.0.4 -- gi-gio-2.0.24 -- gi-glib-2.0.22 -- gi-gobject-2.0.21 -- gi-gtk-3.0.31 -- gi-gtk-hs-0.3.7.0 -- gi-pango-1.0.21 -- gi-xlib-2.0.2 -- gio-0.13.4.1 +- gi-gdkx11-3.0.8 +- gi-xlib-2.0.7 - gtk-sni-tray-0.1.6.0 - gtk-strut-0.1.3.0 -- haskell-gi-0.22.5 -- haskell-gi-base-0.22.2 -- libxml-sax-0.7.5 +- haskell-gi-0.22.6 - rate-limit-1.4.1 -- spool-0.1 -- status-notifier-item-0.3.0.1 -- stm-2.5.0.0 +- status-notifier-item-0.3.0.3 - time-units-1.0.0 - xml-helpers-1.0.0 -- broadcast-chan-0.2.0.2 -resolver: lts-13.19 +resolver: nightly-2019-06-19 allow-newer: true nix: packages: diff --git a/dotfiles/config/taffybar/taffybar b/dotfiles/config/taffybar/taffybar index df8a12fc..e950474f 160000 --- a/dotfiles/config/taffybar/taffybar +++ b/dotfiles/config/taffybar/taffybar @@ -1 +1 @@ -Subproject commit df8a12fc13c80b32fbb7dba6480c90cbb84b3407 +Subproject commit e950474fb79bb657466f904d2081bbc69387b09f diff --git a/dotfiles/lib/bin/restart_taffybar.sh b/dotfiles/lib/bin/restart_taffybar.sh deleted file mode 100755 index 38dbf23c..00000000 --- a/dotfiles/lib/bin/restart_taffybar.sh +++ /dev/null @@ -1,6 +0,0 @@ -#!/usr/bin/env zsh - -rm -rf ~/.cache/taffybar && cd ~/.config/taffybar && ghc taffybar.hs -./taffybar & -pkill -9 taffybar -systemctl --user restart taffybar.service