From 8b8f8d3b6e15b9121373d27b51e2edee561dc2d2 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Fri, 16 Dec 2016 21:51:32 +0100 Subject: Fix path to mlmmj --- ymir/mlmmj-expose.hs | 2 +- ymir/mlmmj-expose.nix | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'ymir') diff --git a/ymir/mlmmj-expose.hs b/ymir/mlmmj-expose.hs index 169fbb42..f074659b 100644 --- a/ymir/mlmmj-expose.hs +++ b/ymir/mlmmj-expose.hs @@ -109,7 +109,7 @@ main = do uuidTrans' (x:xs) = x : uuidTrans' xs getContents >>= writeFile fName hPrintf stdout "Forwarding mail to <%s>, subscribed to %s\n" recipient (takeBaseName listDir) - callProcess "${pkgs.mlmmj}/bin/mlmmj-send" ["-L", listDir, "-l", "6", "-m", fName, "-T", recipient] + callProcess "@mlmmj@/bin/mlmmj-send" ["-L", listDir, "-l", "6", "-m", fName, "-T", recipient] removeFile fName [] -> die "Unknown extension" _ -> die "Ambiguous extension" diff --git a/ymir/mlmmj-expose.nix b/ymir/mlmmj-expose.nix index 370219d3..1eac7c7b 100644 --- a/ymir/mlmmj-expose.nix +++ b/ymir/mlmmj-expose.nix @@ -12,7 +12,7 @@ let ]; mlmmj-exposed = pkgs.stdenv.mkDerivation { name = "mlmmj-expose"; - src = ./mlmmj-expose.hs; + src = (pkgs.substituteAll { src = ./mlmmj-expose.hs; inherit (pkgs) mlmmj; }); buildCommand = '' mkdir -p $out/bin #cp $src $out/bin/.mlmmj-exposed -- cgit v1.2.3