summaryrefslogtreecommitdiff
path: root/ymir
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2018-09-06 17:35:52 +0200
committerGregor Kleen <gkleen@yggdrasil.li>2018-09-06 17:35:52 +0200
commit7f89bd3f437af2dd4b900409c95857265fdd3a58 (patch)
tree244ff2ce8e8855f63aeb49b99e977889d1ca44eb /ymir
parentc32151bff2475df45a520dc8ae5630501bcb2302 (diff)
downloadnixos-7f89bd3f437af2dd4b900409c95857265fdd3a58.tar
nixos-7f89bd3f437af2dd4b900409c95857265fdd3a58.tar.gz
nixos-7f89bd3f437af2dd4b900409c95857265fdd3a58.tar.bz2
nixos-7f89bd3f437af2dd4b900409c95857265fdd3a58.tar.xz
nixos-7f89bd3f437af2dd4b900409c95857265fdd3a58.zip
substitute mlmmj
Diffstat (limited to 'ymir')
-rw-r--r--ymir/mlmmj-expose.nix7
1 files changed, 6 insertions, 1 deletions
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 {
18 18
19 src = ./mlmmj-expose; 19 src = ./mlmmj-expose;
20 20
21 phases = [ "unpackPhase" "buildPhase" "installPhase" ]; 21 phases = [ "unpackPhase" "patchPhase" "buildPhase" "installPhase" ];
22 22
23 env = self.haskellPackages.ghcWithPackages dependencies; 23 env = self.haskellPackages.ghcWithPackages dependencies;
24 import (pkgs) mlmmj;
25
26 patchPhase = ''
27 substituteAllInPlace mlmmj-expose.hs
28 '';
24 29
25 buildPhase = '' 30 buildPhase = ''
26 ${env}/bin/ghc -o mlmmj-expose -odir . -hidir . mlmmj-expose.hs 31 ${env}/bin/ghc -o mlmmj-expose -odir . -hidir . mlmmj-expose.hs