summary refs log tree commit diff
path: root/pkgs/development/tools/haskell/hadrian/ghc-platform.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/development/tools/haskell/hadrian/ghc-platform.nix')
-rw-r--r--pkgs/development/tools/haskell/hadrian/ghc-platform.nix16
1 files changed, 16 insertions, 0 deletions
diff --git a/pkgs/development/tools/haskell/hadrian/ghc-platform.nix b/pkgs/development/tools/haskell/hadrian/ghc-platform.nix
new file mode 100644
index 00000000000..3b1b17fba2c
--- /dev/null
+++ b/pkgs/development/tools/haskell/hadrian/ghc-platform.nix
@@ -0,0 +1,16 @@
+{ mkDerivation, base, lib
+  # GHC source tree to build ghc-toolchain from
+, ghcSrc
+, ghcVersion
+}:
+mkDerivation {
+  pname = "ghc-platform";
+  version = ghcVersion;
+  src = ghcSrc;
+  postUnpack = ''
+    sourceRoot="$sourceRoot/libraries/ghc-platform"
+  '';
+  libraryHaskellDepends = [ base ];
+  description = "Platform information used by GHC and friends";
+  license = lib.licenses.bsd3;
+}