Skip to content

First CTRL-C as graceful stop #10559

Open
@thomaslepoix

Description

@thomaslepoix

Is your feature request related to a problem? Please describe.

I remember a small quality of life feature that I miss from Yocto/Bitbake for interrupting a build.

Describe the solution you'd like

The first CTRL-C received will trigger a graceful stop which means no more derivation build will begin, but the in progress ones will complete before stopping the process.

Only the second CTRL-C received will force a shutdown (current Nix behavior).

Describe alternatives you've considered

Additional context

This is nice to have in context of cross compilation or tweaking with build flags, where there is no binary cache anymore and building a whole system can take several hours, with some huge derivations inside.
It is worth to complete a 75%-built LLVM before pausing the build, for example.

Priorities

Add 👍 to issues you find important.

Metadata

Metadata

Assignees

No one assigned

    Labels

    cliThe old and/or new command line interfacefeatureFeature request or proposalscheduling

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions