2{ stdenv, lib, util, cabalProject', haskellLib, recurseIntoAttrs, testSrc, compiler-nix-name, dwarfdump }:
7 project = cabalProject' {
8 inherit compiler-nix-name;
9 src = testSrc "cabal-simple-debug";
12 packages = project.hsPkgs;
15 # DWARF only works on linux with GHC 8.10.2 and newer
16 meta.disabled = __elem compiler-nix-name ["ghc865" "ghc884"]
17 || !stdenv.hostPlatform.isLinux || haskellLib.isCrossHost || stdenv.hostPlatform.isMusl;
19 inherit (project) plan-nix;
21 run = stdenv.mkDerivation {
22 name = "cabal-simple-debug-test";
25 exe="${(packages.cabal-simple.components.exes.cabal-simple.dwarf).exePath}"
27 size=$(command stat --format '%s' "$exe")
28 printf "size of executable $exe is $size. \n" >& 2
31 printf "checking whether executable included DWARF debug info... " >& 2
32 (${dwarfdump}/bin/dwarfdump $exe || true) | grep -c 'libraries/base/[A-Za-z0-9/]*\.hs'
33 (${dwarfdump}/bin/dwarfdump $exe || true) | grep -c '\/Main\.hs'
39 platforms = platforms.all;
43 # Used for debugging with nix repl
44 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