File tree Expand file tree Collapse file tree 1 file changed +28
-0
lines changed
pkgs/development/compilers/idris2 Expand file tree Collapse file tree 1 file changed +28
-0
lines changed Original file line number Diff line number Diff line change 22 lib ,
33 idris2Packages ,
44 fetchFromGitHub ,
5+ clang ,
6+ chez ,
7+ gmp ,
8+ zsh ,
9+ makeBinaryWrapper ,
10+ stdenv ,
511} :
612let
713 inherit ( idris2Packages ) idris2Api buildIdris ;
4248 filepath
4349 ] ;
4450
51+ nativeBuildInputs = [ makeBinaryWrapper ] ;
52+
53+ buildInputs = [
54+ gmp
55+ clang
56+ chez
57+ ] ++ lib . optionals stdenv . hostPlatform . isDarwin [ zsh ] ;
58+
59+ postInstall = ''
60+ wrapProgram $out/bin/pack \
61+ --suffix C_INCLUDE_PATH : ${ lib . makeIncludePath [ gmp ] } \
62+ --suffix PATH : ${
63+ lib . makeBinPath (
64+ [
65+ clang
66+ chez
67+ ]
68+ ++ lib . optionals stdenv . hostPlatform . isDarwin [ zsh ]
69+ )
70+ }
71+ '' ;
72+
4573 meta = {
4674 description = "An Idris2 Package Manager with Curated Package Collections" ;
4775 mainProgram = "pack" ;
You can’t perform that action at this time.
0 commit comments