core/pkgs/by-name/ha/haskell/hadrian/ghc-toolchain.nix

20 lines
514 B
Nix
Raw Normal View History

2024-05-14 02:37:40 +00:00
{ mkDerivation, base, directory, filepath, ghc-platform, lib
, process, text, transformers
# GHC source tree to build ghc-toolchain from
, ghcVersion
, ghcSrc
}:
mkDerivation {
pname = "ghc-toolchain";
version = ghcVersion;
src = ghcSrc;
postUnpack = ''
sourceRoot="$sourceRoot/utils/ghc-toolchain"
'';
libraryHaskellDepends = [
base directory filepath ghc-platform process text transformers
];
description = "Utility for managing GHC target toolchains";
license = lib.licenses.bsd3;
}