1 # Build a version of idris with a set of packages visible
2 # packages: The packages visible to idris
3 { lib, idris, symlinkJoin, makeWrapper }: packages:
5 let paths = lib.closePropagation packages;
7 lib.appendToName "with-packages" (symlinkJoin {
11 paths = paths ++ [idris] ;
13 nativeBuildInputs = [ makeWrapper ];
16 wrapProgram $out/bin/idris \
17 --set IDRIS_LIBRARY_PATH $out/libs