nixpkgs/pkgs/development/idris-modules/with-packages.nix

21 lines
438 B
Nix
Raw Normal View History

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
{ lib, idris, symlinkJoin, makeWrapper }: packages:
2015-11-27 12:56:11 +00:00
let paths = lib.closePropagation packages;
in
lib.appendToName "with-packages" (symlinkJoin {
inherit (idris) name;
paths = paths ++ [idris] ;
buildInputs = [ makeWrapper ];
2015-11-27 12:56:11 +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
})