forked from mirrors/nixpkgs
cf2a67fef3
this takes care of the following folders in pkgs/development: * arduino * chez-modules * go-packages * guile-modules * idris-modules * perl-modules * r-modules * ruby-modules
21 lines
446 B
Nix
21 lines
446 B
Nix
# Build a version of idris with a set of packages visible
|
|
# packages: The packages visible to idris
|
|
{ stdenv, lib, idris, symlinkJoin, makeWrapper }: packages:
|
|
|
|
let paths = lib.closePropagation packages;
|
|
in
|
|
lib.appendToName "with-packages" (symlinkJoin {
|
|
|
|
inherit (idris) name;
|
|
|
|
paths = paths ++ [idris] ;
|
|
|
|
buildInputs = [ makeWrapper ];
|
|
|
|
postBuild = ''
|
|
wrapProgram $out/bin/idris \
|
|
--set IDRIS_LIBRARY_PATH $out/libs
|
|
'';
|
|
|
|
})
|