Skip to content

Commit f1beac4

Browse files
committed
idris2Packages.pack: fix runtime building of Idris2 versions
1 parent 2a5ea00 commit f1beac4

File tree

1 file changed

+28
-0
lines changed
  • pkgs/development/compilers/idris2

1 file changed

+28
-0
lines changed

pkgs/development/compilers/idris2/pack.nix

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@
22
lib,
33
idris2Packages,
44
fetchFromGitHub,
5+
clang,
6+
chez,
7+
gmp,
8+
zsh,
9+
makeBinaryWrapper,
10+
stdenv,
511
}:
612
let
713
inherit (idris2Packages) idris2Api buildIdris;
@@ -42,6 +48,28 @@ let
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";

0 commit comments

Comments
 (0)