mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-14 22:04:27 +01:00
c6568adb00
most found with https://github.com/siraben/nix-lint
20 lines
444 B
Nix
20 lines
444 B
Nix
# Build a version of idris with a set of packages visible
|
|
# packages: The packages visible to idris
|
|
{ lib, idris, symlinkJoin, makeWrapper }: packages:
|
|
|
|
let paths = lib.closePropagation packages;
|
|
in
|
|
lib.appendToName "with-packages" (symlinkJoin {
|
|
|
|
inherit (idris) name;
|
|
|
|
paths = paths ++ [idris] ;
|
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
postBuild = ''
|
|
wrapProgram $out/bin/idris \
|
|
--set IDRIS_LIBRARY_PATH $out/libs
|
|
'';
|
|
|
|
})
|