summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ymir/mlmmj-expose.nix7
1 files changed, 3 insertions, 4 deletions
diff --git a/ymir/mlmmj-expose.nix b/ymir/mlmmj-expose.nix
index 53e18b1d..cf27d97c 100644
--- a/ymir/mlmmj-expose.nix
+++ b/ymir/mlmmj-expose.nix
@@ -4,9 +4,7 @@ let
4 haskellEnv = pkgs.haskellPackages.ghcWithPackages (pkgs: with pkgs; [ filepath directory SimpleAES bytestring base64-bytestring ]); 4 haskellEnv = pkgs.haskellPackages.ghcWithPackages (pkgs: with pkgs; [ filepath directory SimpleAES bytestring base64-bytestring ]);
5 mlmmj-exposed = pkgs.stdenv.mkDerivation { 5 mlmmj-exposed = pkgs.stdenv.mkDerivation {
6 name = "mlmmj-exposed"; 6 name = "mlmmj-exposed";
7 src = pkgs.writeScript "mlmmj-exposed" '' 7 src = pkgs.writeText "mlmmj-exposed" ''
8 #! ${haskellEnv}/bin/runghc
9
10 {-# LANGUAGE ViewPatterns #-} 8 {-# LANGUAGE ViewPatterns #-}
11 9
12 import System.IO 10 import System.IO
@@ -95,7 +93,8 @@ let
95 ''; 93 '';
96 buildCommand = '' 94 buildCommand = ''
97 mkdir -p $out/bin 95 mkdir -p $out/bin
98 cp $src $out/bin/.mlmmj-exposed 96 #cp $src $out/bin/.mlmmj-exposed
97 ${haskellEnv}/bin/ghc -o $out/bin/.mlmmj-exposed $src
99 for f in mlmmj-exposed mlmmj-expose mlmmj-get-exposed; do 98 for f in mlmmj-exposed mlmmj-expose mlmmj-get-exposed; do
100 ln -s .mlmmj-exposed $out/bin/$f 99 ln -s .mlmmj-exposed $out/bin/$f
101 done 100 done