From c6ab48f26d680dd943ef92eb207309bdffc46c01 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Sun, 2 Oct 2016 16:34:07 +0200 Subject: maybe link libnotify? --- custom/notify-user.nix | 5 +++-- 1 file 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 @@ { stdenv, writeTextFile , ghcWithPackages , user ? "gkleen" -# , libnotify +, libnotify }: stdenv.mkDerivation { @@ -36,8 +36,9 @@ stdenv.mkDerivation { trim = dropWhileEnd isSpace . dropWhile isSpace ''; }; phases = [ "buildPhase" "installPhase" ]; + bulidInputs = [ libnotify ]; buildPhase = '' - ${ghcWithPackages (p: with p; [ Glob process libnotify ])}/bin/ghc -odir . -hidir . $src -o notify-${user} + ${ghcWithPackages (p: with p; [ Glob process libnotify ])}/bin/ghc -odir . -hidir . $src -o notify-${user} -lnotify ''; installPhase = '' mkdir -p $out/bin -- cgit v1.2.3