haskell-ghc-mod: don't hard-code a specific version of emacsPackages into the expression itself

Instead, one of the available version is chosen in haskell-packages.nix, when
the expression is instantiated.

Also updated the meta section.

svn path=/nixpkgs/trunk/; revision=31856
This commit is contained in:
Peter Simons 2012-01-26 14:20:11 +00:00
parent adc8828c96
commit 4752d7201c
2 changed files with 8 additions and 4 deletions

View File

@ -1,4 +1,4 @@
{ cabal, attoparsec, attoparsecEnumerator, ghcPaths, hlint, regexPosix, emacs, emacs23Packages }:
{ cabal, attoparsec, attoparsecEnumerator, ghcPaths, hlint, regexPosix, emacsPackages }:
cabal.mkDerivation (self: {
pname = "ghc-mod";
@ -7,8 +7,7 @@ cabal.mkDerivation (self: {
buildDepends = [
attoparsec attoparsecEnumerator ghcPaths hlint regexPosix
];
# buildTools = [emacs emacs23];
propagatedBuildInputs = [emacs emacs23Packages.haskellMode];
propagatedBuildInputs = [emacsPackages.emacs emacsPackages.haskellMode];
isExecutable = true;
postInstall = ''
cd $out/share/$pname-$version
@ -20,11 +19,14 @@ cabal.mkDerivation (self: {
'';
meta = {
homepage = "http://www.mew.org/~kazu/proj/ghc-mod/";
description = "Happy Haskell programming on Emacs";
license = self.stdenv.lib.licenses.bsd3;
platforms = self.ghc.meta.platforms;
maintainers = [
self.stdenv.lib.maintainers.andres
self.stdenv.lib.maintainers.bluescreen303
self.stdenv.lib.maintainers.simons
];
};
})

View File

@ -683,7 +683,9 @@ let result = let callPackage = x : y : modifyPrio (newScope result.final x y);
ghcEvents = callPackage ../development/libraries/haskell/ghc-events {};
ghcMod = callPackage ../development/libraries/haskell/ghc-mod {};
ghcMod = callPackage ../development/libraries/haskell/ghc-mod {
emacsPackages = pkgs.emacs23Packages;
};
ghcMtl = callPackage ../development/libraries/haskell/ghc-mtl {};