Skip to content

Commit

Permalink
idris2Packages.pack: fix runtime building of Idris2 versions (#362622)
Browse files Browse the repository at this point in the history
  • Loading branch information
mattpolzin authored Dec 25, 2024
2 parents 1bb68c7 + f1beac4 commit e014f1e
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions pkgs/development/compilers/idris2/pack.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@
lib,
idris2Packages,
fetchFromGitHub,
clang,
chez,
gmp,
zsh,
makeBinaryWrapper,
stdenv,
}:
let
inherit (idris2Packages) idris2Api buildIdris;
Expand Down Expand Up @@ -42,6 +48,28 @@ let
filepath
];

nativeBuildInputs = [ makeBinaryWrapper ];

buildInputs = [
gmp
clang
chez
] ++ lib.optionals stdenv.hostPlatform.isDarwin [ zsh ];

postInstall = ''
wrapProgram $out/bin/pack \
--suffix C_INCLUDE_PATH : ${lib.makeIncludePath [ gmp ]} \
--suffix PATH : ${
lib.makeBinPath (
[
clang
chez
]
++ lib.optionals stdenv.hostPlatform.isDarwin [ zsh ]
)
}
'';

meta = {
description = "An Idris2 Package Manager with Curated Package Collections";
mainProgram = "pack";
Expand Down

0 comments on commit e014f1e

Please sign in to comment.