Some cleanup regarding GHC and profiling support.

svn path=/nixpkgs/trunk/; revision=21351
This commit is contained in:
Andres Löh
2010-04-27 18:21:07 +00:00
parent 8a036d8eb1
commit 932b3d3b79
2 changed files with 35 additions and 48 deletions

View File

@@ -1,6 +1,6 @@
# generic builder for Cabal packages
{stdenv, fetchurl, lib, ghc, enableLibraryProfiling ? false, ...} :
{stdenv, fetchurl, lib, ghc, enableLibraryProfiling ? false} :
{
mkDerivation =
transform :
@@ -18,7 +18,7 @@
# if that is not desired (for applications), name can be set to
# fname.
name = if enableLibraryProfiling then
"haskell-${self.pname}-ghc${ghc.ghc.version}-profiling-${self.version}"
"haskell-${self.pname}-ghc${ghc.ghc.version}-${self.version}-profiling"
else
"haskell-${self.pname}-ghc${ghc.ghc.version}-${self.version}";