haskell-hscolour: define the bootstap version of this package using 'extension' rather than by passing an additional parameter to it

This commit is contained in:
Peter Simons 2014-06-09 10:31:29 +02:00
parent 977d43f6c5
commit 164c81be84
2 changed files with 6 additions and 3 deletions

View file

@ -1,4 +1,4 @@
{ cabal, hyperlinkSource ? true }:
{ cabal }:
cabal.mkDerivation (self: {
pname = "hscolour";
@ -6,7 +6,6 @@ cabal.mkDerivation (self: {
sha256 = "15ix93sw4p7g5ln2halcgqppdc0i0vmkzcjzxvqzkk9yp9pq3nrs";
isLibrary = true;
isExecutable = true;
hyperlinkSource = hyperlinkSource;
meta = {
homepage = "http://code.haskell.org/~malcolm/hscolour/";
description = "Colourise Haskell code";

View file

@ -2641,7 +2641,11 @@ self : let callPackage = x : y : modifyPrio (newScope self x y); in
hlint = callPackage ../development/tools/haskell/hlint {};
hscolour = callPackage ../development/tools/haskell/hscolour {};
hscolourBootstrap = self.hscolour.override { hyperlinkSource = false; };
hscolourBootstrap = self.hscolour.override {
cabal = self.cabal.override {
extension = self : super : { hyperlinkSource = false; };
};
};
hslogger = callPackage ../development/tools/haskell/hslogger {};