Library profiling for cabal packages can now be enabled via a config option.

svn path=/nixpkgs/trunk/; revision=21350
This commit is contained in:
Andres Löh
2010-04-27 16:35:01 +00:00
parent 1db4053fcc
commit 8a036d8eb1
3 changed files with 12 additions and 3 deletions

View File

@@ -17,7 +17,10 @@
# all packages with haskell- to avoid name clashes for libraries;
# if that is not desired (for applications), name can be set to
# fname.
name = "haskell-${self.pname}-ghc${ghc.ghc.version}-${self.version}";
name = if enableLibraryProfiling then
"haskell-${self.pname}-ghc${ghc.ghc.version}-profiling-${self.version}"
else
"haskell-${self.pname}-ghc${ghc.ghc.version}-${self.version}";
# the default download location for Cabal packages is Hackage,
# you still have to specify the checksum