summaryrefslogtreecommitdiff
path: root/custom
diff options
context:
space:
mode:
Diffstat (limited to 'custom')
-rw-r--r--custom/notify-user.nix5
1 files changed, 1 insertions, 4 deletions
diff --git a/custom/notify-user.nix b/custom/notify-user.nix
index 808d1615..e5f001f3 100644
--- a/custom/notify-user.nix
+++ b/custom/notify-user.nix
@@ -21,10 +21,7 @@ stdenv.mkDerivation {
21 forM_ envFiles $ \envFile -> do 21 forM_ envFiles $ \envFile -> do
22 sessionAddr <- tail . snd . break (== '=') . head . filter ("DBUS_SESSION_BUS_ADDRESS=" `isPrefixOf`) . lines <$> readFile envFile 22 sessionAddr <- tail . snd . break (== '=') . head . filter ("DBUS_SESSION_BUS_ADDRESS=" `isPrefixOf`) . lines <$> readFile envFile
23 setEnv "DBUS_SESSION_BUS_ADDRESS" sessionAddr 23 setEnv "DBUS_SESSION_BUS_ADDRESS" sessionAddr
24 callProcess "${libnotify}/bin/notify-send" =<< (++) <$> getArgs <*> (pure . concatMap escape . dropWhileEnd isSpace <$> getContents) 24 callProcess "${libnotify}/bin/notify-send" =<< (++) <$> getArgs <*> (pure . dropWhileEnd isSpace <$> getContents)
25 where
26 escape '\\' = "\\\\"
27 escape x = pure x
28 ''; }; 25 ''; };
29 phases = [ "buildPhase" "installPhase" ]; 26 phases = [ "buildPhase" "installPhase" ];
30 buildPhase = '' 27 buildPhase = ''