diff options
author | Gregor Kleen <pngwjpgh@users.noreply.github.com> | 2016-07-21 21:26:10 +0200 |
---|---|---|
committer | Gregor Kleen <pngwjpgh@users.noreply.github.com> | 2016-07-21 21:26:10 +0200 |
commit | c8825be34e061698d0081a3a2301085bc2c88e2a (patch) | |
tree | b99986fcc28a2573ccfbfb8fe576fe3a2024825a | |
parent | 05130e72bb01c9b3671cf049b21f5a018eb3626b (diff) | |
download | nixos-c8825be34e061698d0081a3a2301085bc2c88e2a.tar nixos-c8825be34e061698d0081a3a2301085bc2c88e2a.tar.gz nixos-c8825be34e061698d0081a3a2301085bc2c88e2a.tar.bz2 nixos-c8825be34e061698d0081a3a2301085bc2c88e2a.tar.xz nixos-c8825be34e061698d0081a3a2301085bc2c88e2a.zip |
types
-rw-r--r-- | custom/notify-user.nix | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/custom/notify-user.nix b/custom/notify-user.nix index b3c5f766..68e267d6 100644 --- a/custom/notify-user.nix +++ b/custom/notify-user.nix | |||
@@ -10,7 +10,7 @@ stdenv.mkDerivation { | |||
10 | import System.FilePath.Glob (glob) | 10 | import System.FilePath.Glob (glob) |
11 | import System.Directory (setCurrentDirectory) | 11 | import System.Directory (setCurrentDirectory) |
12 | import System.Environment (setEnv, getArgs) | 12 | import System.Environment (setEnv, getArgs) |
13 | import System.Process (proc) | 13 | import System.Process (callProcess) |
14 | 14 | ||
15 | import Data.List (isPrefixOf) | 15 | import Data.List (isPrefixOf) |
16 | 16 | ||
@@ -19,7 +19,7 @@ stdenv.mkDerivation { | |||
19 | (envFile:_) <- glob "/home/${user}/.dbus/session-bus/*" | 19 | (envFile:_) <- glob "/home/${user}/.dbus/session-bus/*" |
20 | sessionAddr <- snd . break (== '=') . head . filter ("DBUS_SESSION_BUS_ADDRESS=" `isPrefixOf`) . lines <$> readFile envFile | 20 | sessionAddr <- snd . break (== '=') . head . filter ("DBUS_SESSION_BUS_ADDRESS=" `isPrefixOf`) . lines <$> readFile envFile |
21 | setEnv "DBUS_SESSION_BUS_ADDRESS" sessionAddr | 21 | setEnv "DBUS_SESSION_BUS_ADDRESS" sessionAddr |
22 | proc "${libnotify}/bin/notify-send" =<< getArgs | 22 | callProcess "${libnotify}/bin/notify-send" =<< getArgs |
23 | 23 | ||
24 | ''; }; | 24 | ''; }; |
25 | phases = [ "buildPhase" "installPhase" ]; | 25 | phases = [ "buildPhase" "installPhase" ]; |