diff options
-rw-r--r-- | custom/notify-user.nix | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/custom/notify-user.nix b/custom/notify-user.nix index 58beebf7..df559fb1 100644 --- a/custom/notify-user.nix +++ b/custom/notify-user.nix | |||
@@ -1,7 +1,7 @@ | |||
1 | { stdenv, writeTextFile | 1 | { stdenv, writeTextFile |
2 | , ghcWithPackages | 2 | , ghcWithPackages |
3 | , user ? "gkleen" | 3 | , user ? "gkleen" |
4 | # , libnotify | 4 | , libnotify |
5 | }: | 5 | }: |
6 | 6 | ||
7 | stdenv.mkDerivation { | 7 | stdenv.mkDerivation { |
@@ -36,8 +36,9 @@ stdenv.mkDerivation { | |||
36 | trim = dropWhileEnd isSpace . dropWhile isSpace | 36 | trim = dropWhileEnd isSpace . dropWhile isSpace |
37 | ''; }; | 37 | ''; }; |
38 | phases = [ "buildPhase" "installPhase" ]; | 38 | phases = [ "buildPhase" "installPhase" ]; |
39 | bulidInputs = [ libnotify ]; | ||
39 | buildPhase = '' | 40 | buildPhase = '' |
40 | ${ghcWithPackages (p: with p; [ Glob process libnotify ])}/bin/ghc -odir . -hidir . $src -o notify-${user} | 41 | ${ghcWithPackages (p: with p; [ Glob process libnotify ])}/bin/ghc -odir . -hidir . $src -o notify-${user} -lnotify |
41 | ''; | 42 | ''; |
42 | installPhase = '' | 43 | installPhase = '' |
43 | mkdir -p $out/bin | 44 | mkdir -p $out/bin |