From 120e481f0d746270a24395a095591508d5fb3141 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Thu, 2 Jun 2016 02:58:34 +0200 Subject: compile --- ymir/mlmmj-expose.nix | 7 +++---- 1 file 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 haskellEnv = pkgs.haskellPackages.ghcWithPackages (pkgs: with pkgs; [ filepath directory SimpleAES bytestring base64-bytestring ]); mlmmj-exposed = pkgs.stdenv.mkDerivation { name = "mlmmj-exposed"; - src = pkgs.writeScript "mlmmj-exposed" '' - #! ${haskellEnv}/bin/runghc - + src = pkgs.writeText "mlmmj-exposed" '' {-# LANGUAGE ViewPatterns #-} import System.IO @@ -95,7 +93,8 @@ let ''; buildCommand = '' mkdir -p $out/bin - cp $src $out/bin/.mlmmj-exposed + #cp $src $out/bin/.mlmmj-exposed + ${haskellEnv}/bin/ghc -o $out/bin/.mlmmj-exposed $src for f in mlmmj-exposed mlmmj-expose mlmmj-get-exposed; do ln -s .mlmmj-exposed $out/bin/$f done -- cgit v1.2.3