Skip to content

Instantly share code, notes, and snippets.

@gilligan
Created November 7, 2014 16:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gilligan/c9ab4efc4f78ce38a830 to your computer and use it in GitHub Desktop.
Save gilligan/c9ab4efc4f78ce38a830 to your computer and use it in GitHub Desktop.
# This file was auto-generated by cabal2nix. Please do NOT edit manually!
{ cabal, filepath, ghcPaths, haskeline, syb, time, transformers, ncurses }:
cabal.mkDerivation (self: {
pname = "ghci-ng";
version = "7.8.3";
src = ./.;
isLibrary = false;
isExecutable = true;
buildDepends = [
filepath ghcPaths haskeline syb time transformers ncurses
];
meta = {
homepage = "https://github.com/chrisdone/ghci-ng";
description = "Next generation GHCi";
license = self.stdenv.lib.licenses.bsd3;
platforms = self.ghc.meta.platforms;
};
})
name: ghci-ng
version: 7.8.3
synopsis: Next generation GHCi
description: GHCi plus extra goodies. See README for feature list: https://github.com/chrisdone/ghci-ng#features
license: BSD3
homepage: https://github.com/chrisdone/ghci-ng
license-file: LICENSE
author: The GHC Team, Chris Done
maintainer: chrisdone@gmail.com
copyright: 2005 The University of Glasgow, 2008 Claus Reinke, 2012 Kazu Yamamoto, 2014 Chris Done
category: Development
build-type: Simple
stability: Experimental
cabal-version: >= 1.14
extra-source-files: ghc/HsVersions.h rts/PosixSource.h
executable ghci-ng
main-is: Main.hs
hs-source-dirs: ghc/
ghc-options: -Wall -O2
c-sources: ghc/hschooks.c
other-modules: InteractiveUI
GhciMonad
GhciTags
GhciTypes
GhciInfo
GhciFind
ghc-options: -Wall -fno-warn-name-shadowing -threaded -dynamic
cpp-options: -DGHCI
default-language: Haskell2010
default-extensions:
CPP
FlexibleInstances
MagicHash
NondecreasingIndentation
UnboxedTuples
build-depends:
base,
array,
bytestring,
directory,
filepath,
ghc == 7.8.*,
ghc-paths,
haskeline,
process,
transformers,
syb,
containers,
time,
unix
source-repository head
type: git
location: git://github.com/chrisdone/ghci-ng.git
let
pkgs = import <nixpkgs> {};
haskellPackages = pkgs.haskellPackages.override {
extension = self: super: {
ghci-ng = self.callPackage ./. {};
};
};
in pkgs.myEnvFun {
name = haskellPackages.ghci-ng.name;
buildInputs = [
pkgs.python27Full
pkgs.ncurses
(haskellPackages.ghcWithPackages (hs: ([
hs.cabalInstall
hs.hscolour
hs.ghcMod
hs.hlint
] ++ hs.ghci-ng.propagatedNativeBuildInputs)))
];
}
@gilligan
Copy link
Author

gilligan commented Nov 7, 2014

% nix-shell --pure -I nixpkgs=/home/gilligan/nixpkgs

[nix-shell:~/Development/haskell/ghci-ng]$ cabal repl
Preprocessing executable 'ghci-ng' for ghci-ng-7.8.3...
GHCi, version 7.8.3: http://www.haskell.org/ghc/ :? for help
Loading package ghc-prim ... linking ... done.
Loading package integer-gmp ... linking ... done.
Loading package base ... linking ... done.
Loading package syb-0.4.2 ... linking ... done.
Loading package array-0.5.0.0 ... linking ... done.
Loading package deepseq-1.3.0.2 ... linking ... done.
Loading package bytestring-0.10.4.0 ... linking ... done.
Loading package containers-0.5.5.1 ... linking ... done.
Loading package filepath-1.3.0.2 ... linking ... done.
Loading package old-locale-1.0.0.6 ... linking ... done.
Loading package time-1.4.2 ... linking ... done.
Loading package unix-2.7.0.1 ... linking ... done.
Loading package directory-1.2.1.0 ... linking ... done.
Loading package terminfo-0.4.0.0 ... : can't load .so/.DLL for: libncursesw.so (libncursesw.so: cannot open shared object file: No such file or directory)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment