From 7f89bd3f437af2dd4b900409c95857265fdd3a58 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Thu, 6 Sep 2018 17:35:52 +0200 Subject: substitute mlmmj --- ymir/mlmmj-expose.nix | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/ymir/mlmmj-expose.nix b/ymir/mlmmj-expose.nix index b165c0f1..cd11aa6e 100644 --- a/ymir/mlmmj-expose.nix +++ b/ymir/mlmmj-expose.nix @@ -18,9 +18,14 @@ in rec { src = ./mlmmj-expose; - phases = [ "unpackPhase" "buildPhase" "installPhase" ]; + phases = [ "unpackPhase" "patchPhase" "buildPhase" "installPhase" ]; env = self.haskellPackages.ghcWithPackages dependencies; + import (pkgs) mlmmj; + + patchPhase = '' + substituteAllInPlace mlmmj-expose.hs + ''; buildPhase = '' ${env}/bin/ghc -o mlmmj-expose -odir . -hidir . mlmmj-expose.hs -- cgit v1.2.3