1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
| | From 51d84e9adde98b4acf734c0f2631c8d956d2e281 Mon Sep 17 00:00:00 2001
From: David Craven <david@craven.ch>
Date: Sun, 6 Nov 2016 16:12:54 +0100
Subject: [PATCH 2/2] Override default library install path with TARGET.
* Setup.hs (idrisInstall): installStdLib to TARGET when set.
---
Setup.hs | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/Setup.hs b/Setup.hs
index 8f58b6b3..affb61dc 100644
--- a/Setup.hs
+++ b/Setup.hs
@@ -254,7 +254,8 @@ idrisInstall verbosity copy pkg local = unless (execOnly (configFlags local)) $
target = datadir $ L.absoluteInstallDirs pkg local copy
installStdLib = do
- let target' = target -- </> "libs"
+ envTarget <- lookupEnv "TARGET"
+ let target' = maybe target id envTarget -- </> "libs"
putStrLn $ "Installing libraries in " ++ target'
makeInstall "libs" target'
--
2.11.0
|