GHC 7.8.3을 기본 시스템 전체 Haskell 컴파일러로 만들고 싶습니다. 전체 플랫폼을 설치하고 싶지는 않습니다.NixOS : 시스템 전체에 7.8.3 버전의 GHC 사용
$ ghc --verion
$ The Glorious Glasgow Haskell Compilation System, version 7.6.3
나는 몇 가지 팁을 발견했습니다 ... 그러나
{
environment.systemPackages = with pkgs; [
haskellPackages_ghc783_profiling.alex
haskellPackages_ghc783_profiling.happy
# ghc.ghc783 -- not sure about this one
haskellPackages_ghc783_profiling.ghc
haskellPackages_ghc783_profiling.cabalInstall
];
}
기본적으로 7.6.3 쇼 VER, 그리고 어디에서 오는지 나는 상상할 수 없다 : 여기 내 configurarion.nix
파일의 조각이다 Wiki pages에 :
pkgs : {
packageOverrides = self : rec {
hsEnv = self.haskellPackages.ghcWithPackages (self : [
self.haskellPlatform
# add more packages here
#
# I tried to replace `self.haskellPlatform`
# with `self:ghc783`,
# with `self:haskellPackages.ghc_783_profiling.ghc`, and
# with `self:ghc`, but all that produces errors.
]);
};
}
그래서, 버전 7.8.3이 기본값으로 만들 수있는 올바른 방법은 무엇입니까?
'7.6.3'이 어디에서 왔는지 알고 싶다면'which' 명령을 사용하여 경로를 찾을 수 있습니다. – Sibi
나는'which'에 익숙하다. 내 구성에는 나열되어 있지 않지만 실제로 시스템에 존재한다는 것을 의미한다. (: –