diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2016-06-02 02:58:34 +0200 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2016-06-02 02:58:34 +0200 |
commit | 120e481f0d746270a24395a095591508d5fb3141 (patch) | |
tree | b7e2a32ab8b9782b9e9ca2df40cf09584e440a1d | |
parent | 9ae4a9a6c18ccc02b5200e765a994f0d8f60ed13 (diff) | |
download | nixos-120e481f0d746270a24395a095591508d5fb3141.tar nixos-120e481f0d746270a24395a095591508d5fb3141.tar.gz nixos-120e481f0d746270a24395a095591508d5fb3141.tar.bz2 nixos-120e481f0d746270a24395a095591508d5fb3141.tar.xz nixos-120e481f0d746270a24395a095591508d5fb3141.zip |
compile
-rw-r--r-- | ymir/mlmmj-expose.nix | 7 |
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 |