2{ stdenv, util, cabalProject', haskellLib, recurseIntoAttrs, testSrc, compiler-nix-name }:
9 # Package has no exposed modules which causes
10 # haddock: No input file(s)
11 packages.cabal-simple.doHaddock = false;
12 packages.cabal-simple.enableExecutableProfiling = true;
13 enableLibraryProfiling = true;
14 # executableProfiling = false;
18 project = cabalProject' {
19 inherit compiler-nix-name;
20 src = testSrc "cabal-simple-prof";
24 packages = project.hsPkgs;
28 inherit (project) plan-nix;
30 run = stdenv.mkDerivation {
31 name = "cabal-simple-prof-test";
34 exe="${packages.cabal-simple.components.exes.cabal-simple}/bin/cabal-simple${stdenv.hostPlatform.extensions.executable}"
36 size=$(command stat --format '%s' "$exe")
37 printf "size of executable $exe is $size. \n" >& 2
39 # fixme: run on target platform when cross-compiled
40 printf "checking whether executable runs with profiling... " >& 2
41 # Curiosity: cross compilers prodcing profiling with `+RTS -p -h` lead to the following cryptic message:
42 # cabal-simple: invalid heap profile option: -h*
43 # Hence we pass `-hc`.
44 ${toString packages.cabal-simple.components.exes.cabal-simple.config.testWrapper} $exe +RTS -p -hc
49 meta.platforms = platforms.all;
52 # Used for debugging with nix repl
53 inherit project packages;
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list