[commit: ghc] master: Remove broken top-level shell.nix (430e6fe)

git at git.haskell.org git at git.haskell.org
Fri Apr 20 22:04:40 UTC 2018


Repository : ssh://git@git.haskell.org/ghc

On branch  : master
Link       : http://ghc.haskell.org/trac/ghc/changeset/430e6fedfda3e705c6e4c962954c32211a90f9f7/ghc

>---------------------------------------------------------------

commit 430e6fedfda3e705c6e4c962954c32211a90f9f7
Author: Matthew Pickering <matthew.pickering at tweag.io>
Date:   Fri Apr 20 13:31:49 2018 -0400

    Remove broken top-level shell.nix
    
    There is a maintained shell.nix file in the hadrian submodule. This
    has long since been broken anyway.
    
    Reviewers: bgamari
    
    Reviewed By: bgamari
    
    Subscribers: thomie, carter
    
    GHC Trac Issues: #15045
    
    Differential Revision: https://phabricator.haskell.org/D4599


>---------------------------------------------------------------

430e6fedfda3e705c6e4c962954c32211a90f9f7
 shell.nix | 61 -------------------------------------------------------------
 1 file changed, 61 deletions(-)

diff --git a/shell.nix b/shell.nix
deleted file mode 100644
index e9a5ecc..0000000
--- a/shell.nix
+++ /dev/null
@@ -1,61 +0,0 @@
-# Invoking nix-shell sets up an environment where we can build ghc
-# by only invoking hadrian.
-
-
-{ nixpkgs ? import <nixpkgs> {} }:
-
-let
-  haskellPackages = nixpkgs.haskell.packages.ghc821;
-
-  removeBuild = path: type:
-    let baseName = baseNameOf (toString path);
-    in
-        ! (baseName == "_build"
-           || baseName == "dist"
-           || baseName == "dist-newstyle"
-           || baseName == ".stack-work"
-           || baseName == "config.log"
-           || baseName == "config.status"
-           || nixpkgs.lib.hasSuffix ".sh" baseName
-           || !(nixpkgs.lib.cleanSourceFilter path type)) ;
-
-  filterSrc = path: builtins.filterSource removeBuild path;
-
-
-  hadrianPackages = nixpkgs.haskell.packages.ghc821.override {
-    overrides = self: super: let
-        localPackage = name: path: self.callCabal2nix name (filterSrc path) {};
-      in {
-        hadrian = localPackage "hadrian" ./. ;
-        shake = self.callHackage "shake" "0.16" {};
-        Cabal = localPackage "Cabal" ./../libraries/Cabal/Cabal ;
-        filepath = localPackage "filepath" ./../libraries/filepath ;
-        text = localPackage "text" ./../libraries/text  ;
-        hpc = localPackage"hpc" ./../libraries/hpc ;
-        parsec = localPackage "parsec" ./../libraries/parsec ;
-        HUnit = nixpkgs.haskell.lib.dontCheck (self.callHackage "HUnit" "1.3.1.2" {});
-        process = localPackage "process" ./../libraries/process ;
-        directory = localPackage "directory" ./../libraries/directory ;
-      }; };
-
-in
-
-  nixpkgs.stdenv.mkDerivation {
-    name = "ghc-dev";
-    buildInputs = [
-                    hadrianPackages.hadrian
-                    nixpkgs.haskell.compiler.ghc821
-                    haskellPackages.alex
-                    haskellPackages.happy
-                    nixpkgs.python3
-                    nixpkgs.git
-                    nixpkgs.autoconf
-                    nixpkgs.automake
-                    nixpkgs.perl
-                    nixpkgs.gcc
-                    nixpkgs.python3Packages.sphinx
-                    nixpkgs.ncurses
-                    nixpkgs.m4
-                    nixpkgs.gmp
-                    nixpkgs.file ];
-  }



More information about the ghc-commits mailing list