diff options
author | Gregor Kleen <pngwjpgh@users.noreply.github.com> | 2016-07-21 21:37:11 +0200 |
---|---|---|
committer | Gregor Kleen <pngwjpgh@users.noreply.github.com> | 2016-07-21 21:37:11 +0200 |
commit | af02d2210e3bbbe4ba9f5dae202aac35be92f244 (patch) | |
tree | 349d3e7e6c482c21e03c93bbc29a41d88087f65f | |
parent | 71feaee7aa7efd7fb35f34ac34a6fbd23e47d96e (diff) | |
download | nixos-af02d2210e3bbbe4ba9f5dae202aac35be92f244.tar nixos-af02d2210e3bbbe4ba9f5dae202aac35be92f244.tar.gz nixos-af02d2210e3bbbe4ba9f5dae202aac35be92f244.tar.bz2 nixos-af02d2210e3bbbe4ba9f5dae202aac35be92f244.tar.xz nixos-af02d2210e3bbbe4ba9f5dae202aac35be92f244.zip |
types
-rw-r--r-- | custom/notify-user.nix | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/custom/notify-user.nix b/custom/notify-user.nix index 15551629..0e079eb5 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 <*> getContents | 23 | callProcess "${libnotify}/bin/notify-send" =<< (++) <$> getArgs <*> (pure <$> getContents) |
24 | 24 | ||
25 | ''; }; | 25 | ''; }; |
26 | phases = [ "buildPhase" "installPhase" ]; | 26 | phases = [ "buildPhase" "installPhase" ]; |