summaryrefslogtreecommitdiff
path: root/custom
diff options
context:
space:
mode:
Diffstat (limited to 'custom')
-rw-r--r--custom/notify-users.nix11
1 files changed, 5 insertions, 6 deletions
diff --git a/custom/notify-users.nix b/custom/notify-users.nix
index ca2d980a..42c45403 100644
--- a/custom/notify-users.nix
+++ b/custom/notify-users.nix
@@ -11,16 +11,15 @@ let
11 11
12 phases = [ "unpackPhase" "buildPhase" "installPhase" ]; 12 phases = [ "unpackPhase" "buildPhase" "installPhase" ];
13 13
14 unpackPhase = ''
15 cp $src notify-user.hs
16 '';
17
18 user = userName; 14 user = userName;
19 home = config.users.users."${userName}".home; 15 home = config.users.users."${userName}".home;
20 16
17 unpackPhase = ''
18 substituteAll $src notify-${userName}.hs
19 '';
20
21 buildPhase = '' 21 buildPhase = ''
22 substituteAllInPlace notify-user.hs 22 ${haskellPackages.ghcWithPackages (p: with p; [ Glob process libnotify getopt-simple containers ])}/bin/ghc -odir . -hidir . notify-${userName}.hs -o notify-${userName}
23 ${haskellPackages.ghcWithPackages (p: with p; [ Glob process libnotify getopt-simple containers ])}/bin/ghc -odir . -hidir . $src -o notify-${userName}
24 ''; 23 '';
25 24
26 installPhase = '' 25 installPhase = ''