2015-11-27 18:17:17 +00:00
|
|
|
# Build a version of idris with a set of packages visible
|
|
|
|
# packages: The packages visible to idris
|
2021-01-25 08:26:54 +00:00
|
|
|
{ lib, idris, symlinkJoin, makeWrapper }: packages:
|
2015-11-27 12:56:11 +00:00
|
|
|
|
2021-01-17 18:11:59 +00:00
|
|
|
let paths = lib.closePropagation packages;
|
2017-11-06 18:18:59 +00:00
|
|
|
in
|
2021-01-17 18:11:59 +00:00
|
|
|
lib.appendToName "with-packages" (symlinkJoin {
|
2015-11-27 14:35:59 +00:00
|
|
|
|
2018-05-25 09:21:47 +00:00
|
|
|
inherit (idris) name;
|
2015-11-27 14:35:59 +00:00
|
|
|
|
2017-11-06 18:18:59 +00:00
|
|
|
paths = paths ++ [idris] ;
|
2015-11-27 14:35:59 +00:00
|
|
|
|
2022-08-15 03:40:21 +00:00
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
2015-11-27 12:56:11 +00:00
|
|
|
|
2017-11-06 18:18:59 +00:00
|
|
|
postBuild = ''
|
|
|
|
wrapProgram $out/bin/idris \
|
|
|
|
--set IDRIS_LIBRARY_PATH $out/libs
|
2018-07-02 03:18:08 +00:00
|
|
|
'';
|
2015-11-27 12:56:11 +00:00
|
|
|
|
2018-05-25 09:21:47 +00:00
|
|
|
})
|