mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-27 09:23:01 +00:00
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:
parent
adc8828c96
commit
4752d7201c
@ -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
|
||||
];
|
||||
};
|
||||
})
|
||||
|
@ -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 {};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user