Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: NixOS/nixpkgs
base: 26974e962ebc
Choose a base ref
...
head repository: NixOS/nixpkgs
compare: 926d6c0bad41
Choose a head ref
  • 4 commits
  • 4 files changed
  • 2 contributors

Commits on Oct 25, 2018

  1. cntr: init at 1.2.0

    Mic92 committed Oct 25, 2018
    Copy the full SHA
    84e915a View commit details
    Browse the repository at this point in the history
  2. breakpointHook: add for debugging failing builds

    Usuage: Add breakpointHook to your `buildInputs` like this:
    
      stdenv.mkDerivation rec {
        # ...
        buildInputs = [ breakpointHook ];
      });
    
    When the build fails as show in this example:
    
      pkgs.hello.overrideAttrs (old: {
        buildInputs = [ breakpointHook ];
        postPatch = ''
          false
        '';
      });
    
    It will halt execution printing the following message:
    
    build failed in patchPhase with exit code 1
    To attach to this build run the following command as root:
    
       cntr attach -t command cntr-/nix/store/ynyb4n82x2r7sldd58pbb405jdqh5f00-hello-2.10
    
    Installing cntr and running the command will provide shell access to the
    build sandbox of failed build:
    
    sudo cntr attach -t command cntr-/nix/store/ynyb4n82x2r7sldd58pbb405jdqh5f00-hello-2.10
    WARNING: bad ownership on /nix/var/nix/profiles/per-user/root, should be 1000
    [nixbld@localhost:/var/lib/cntr]$
    
    At /var/lib/cntr the sandbox filesystem is mounted. All commands and
    files of the system are still accessible within the shell.
    To execute commands from the sandbox use the `cntr exec` subcommand.
    Mic92 committed Oct 25, 2018
    2
    Copy the full SHA
    f10b935 View commit details
    Browse the repository at this point in the history
  3. Copy the full SHA
    325a569 View commit details
    Browse the repository at this point in the history
  4. Merge pull request #42371 from Mic92/nix-breakpoints

    breakpointHook: add for debugging failing builds
    Mic92 committed Oct 25, 2018
    Copy the full SHA
    926d6c0 View commit details
    Browse the repository at this point in the history