summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGregor Kleen <pngwjpgh@users.noreply.github.com>2016-07-21 21:36:21 +0200
committerGregor Kleen <pngwjpgh@users.noreply.github.com>2016-07-21 21:36:21 +0200
commit71feaee7aa7efd7fb35f34ac34a6fbd23e47d96e (patch)
tree53f32327210a0f13450df67ffa70da0c480544f6
parent7971b5c6c9b0e8e9b17444f71431bd29c28a8a3b (diff)
downloadnixos-71feaee7aa7efd7fb35f34ac34a6fbd23e47d96e.tar
nixos-71feaee7aa7efd7fb35f34ac34a6fbd23e47d96e.tar.gz
nixos-71feaee7aa7efd7fb35f34ac34a6fbd23e47d96e.tar.bz2
nixos-71feaee7aa7efd7fb35f34ac34a6fbd23e47d96e.tar.xz
nixos-71feaee7aa7efd7fb35f34ac34a6fbd23e47d96e.zip
read summary from stdin
-rw-r--r--custom/notify-user.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/custom/notify-user.nix b/custom/notify-user.nix
index c9a70f40..15551629 100644
--- a/custom/notify-user.nix
+++ b/custom/notify-user.nix
@@ -20,7 +20,7 @@ stdenv.mkDerivation {
20 forM_ envFiles $ \envFile -> do 20 forM_ envFiles $ \envFile -> do
21 sessionAddr <- tail . snd . break (== '=') . head . filter ("DBUS_SESSION_BUS_ADDRESS=" `isPrefixOf`) . lines <$> readFile envFile 21 sessionAddr <- tail . snd . break (== '=') . head . filter ("DBUS_SESSION_BUS_ADDRESS=" `isPrefixOf`) . lines <$> readFile envFile
22 setEnv "DBUS_SESSION_BUS_ADDRESS" sessionAddr 22 setEnv "DBUS_SESSION_BUS_ADDRESS" sessionAddr
23 callProcess "${libnotify}/bin/notify-send" =<< getArgs 23 callProcess "${libnotify}/bin/notify-send" =<< (:) <$> getArgs <*> getContents
24 24
25 ''; }; 25 ''; };
26 phases = [ "buildPhase" "installPhase" ]; 26 phases = [ "buildPhase" "installPhase" ];