From a6d0a6c4a7e0d43ee139a65517af414eb98d20b1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Attila=20Ol=C3=A1h?= Date: Sun, 19 Jul 2026 10:21:50 +0200 Subject: [PATCH] nix: use with pkgs in some package lists --- flake.nix | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/flake.nix b/flake.nix index a63839a..96d0625 100644 --- a/flake.nix +++ b/flake.nix @@ -35,11 +35,11 @@ # python3 is needed by checkPhase: `make test-c` shells out to # `python3 tools/run_tests.py` (see c/Makefile, PYTHON ?= python3). - nativeBuildInputs = [pkgs.makeWrapper pkgs.python3]; + nativeBuildInputs = with pkgs; [makeWrapper python3]; - buildInputs = [ - pkgs.gcc - pkgs.gmp + buildInputs = with pkgs; [ + gcc + gmp ]; # Use x86-64-v3 (AVX2) for a portable binary; override with ARCH=native for local builds @@ -119,12 +119,12 @@ devShells.default = pkgs.mkShell { inputsFrom = [colibri]; - packages = [ + packages = with pkgs; [ pythonEnv - pkgs.gcc - pkgs.gnumake - pkgs.clang-tools # clangd / clang-tidy for IDE support - pkgs.pkg-config + gcc + gnumake + clang-tools # clangd / clang-tidy for IDE support + pkg-config ]; shellHook = ''