lol

idris2Packages.pack: fix runtime building of Idris2 versions (#362622)

authored by

Mathew Polzin and committed by
GitHub
e014f1e9 1bb68c7d

+28
+28
pkgs/development/compilers/idris2/pack.nix
··· 2 2 lib, 3 3 idris2Packages, 4 4 fetchFromGitHub, 5 + clang, 6 + chez, 7 + gmp, 8 + zsh, 9 + makeBinaryWrapper, 10 + stdenv, 5 11 }: 6 12 let 7 13 inherit (idris2Packages) idris2Api buildIdris; ··· 41 47 toml 42 48 filepath 43 49 ]; 50 + 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 + ''; 44 72 45 73 meta = { 46 74 description = "An Idris2 Package Manager with Curated Package Collections";