feat: introduce Nix flake

CRIU currently requires a number of dependencies in order to build from
source. The package names vary across distributions and package
managers. A Nix flake allows developers to spin up a dev environment
with `nix develop`, eliminating the hassle of manual dependency
management. It also prevents polluting the global package set on the
machine.

Signed-off-by: Prajwal S N <prajwalnadig21@gmail.com>
This commit is contained in:
Prajwal S N 2025-04-14 14:06:40 +05:30 committed by Andrei Vagin
parent 5f18ca1bbe
commit fbfed312e0
3 changed files with 139 additions and 1 deletions

View file

@ -34,7 +34,7 @@ To clone CRIU repo and switch to the proper branch, run:
### Compile
First, you need to install compile-time dependencies. Check [Installation dependencies](https://criu.org/Installation#Dependencies) for more info.
First, you need to install compile-time dependencies. Check [Installation dependencies](https://criu.org/Installation#Dependencies) for more info. Alternatively, you can use the Nix flake to set up a development environment by running `nix develop`.
To compile CRIU, run: