From dea8e06fc0a46b47c2465a2776509040ace64eb7 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Sat, 2 Jun 2018 18:13:24 +0200 Subject: ... --- custom/notify-users.nix | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'custom/notify-users.nix') 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 phases = [ "unpackPhase" "buildPhase" "installPhase" ]; - unpackPhase = '' - cp $src notify-user.hs - ''; - user = userName; home = config.users.users."${userName}".home; + unpackPhase = '' + substituteAll $src notify-${userName}.hs + ''; + buildPhase = '' - substituteAllInPlace notify-user.hs - ${haskellPackages.ghcWithPackages (p: with p; [ Glob process libnotify getopt-simple containers ])}/bin/ghc -odir . -hidir . $src -o notify-${userName} + ${haskellPackages.ghcWithPackages (p: with p; [ Glob process libnotify getopt-simple containers ])}/bin/ghc -odir . -hidir . notify-${userName}.hs -o notify-${userName} ''; installPhase = '' -- cgit v1.2.3