idrisPackages.idris: 1.0 -> 1.1.1

This commit is contained in:
Thomas Tuegel
2017-08-23 06:45:32 -05:00
parent ca381067e7
commit b438d394ce
4 changed files with 32 additions and 9 deletions
@@ -4,8 +4,13 @@
# name and src.
{ stdenv, idris, gmp }: args: stdenv.mkDerivation ({
preHook = ''
mkdir idris-libs
# Library import path
export IDRIS_LIBRARY_PATH=$PWD/idris-libs
mkdir -p $IDRIS_LIBRARY_PATH
# Library install path
export IBCSUBDIR=$out/lib/${idris.name}
mkdir -p $IBCSUBDIR
addIdrisLibs () {
if [ -d $1/lib/${idris.name} ]; then
@@ -16,10 +21,6 @@
envHooks+=(addIdrisLibs)
'';
configurePhase = ''
export TARGET=$out/lib/${idris.name}
'';
buildPhase = ''
${idris}/bin/idris --build *.ipkg
'';
@@ -33,7 +34,7 @@
'';
installPhase = ''
${idris}/bin/idris --install *.ipkg
${idris}/bin/idris --install *.ipkg --ibcsubdir $IBCSUBDIR
'';
buildInputs = [ gmp ];