From 2dbccc394a4964a2a3badd192184b6d35dd63336 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Thu, 23 Mar 2023 12:31:51 +0100 Subject: Rework how I pass packages to the NixOS --- devShells/c.nix | 87 ++++++++++++++++++++++++++++----------------------------- 1 file changed, 42 insertions(+), 45 deletions(-) (limited to 'devShells/c.nix') diff --git a/devShells/c.nix b/devShells/c.nix index 7aba33f..e20fcc8 100644 --- a/devShells/c.nix +++ b/devShells/c.nix @@ -1,52 +1,49 @@ { - system, - nixpkgs, + pkgs, default, -}: let - pkgs = nixpkgs.legacyPackages.${system}; -in - pkgs.mkShell { - packages = with pkgs; [ - clang-tools_14 - ctags - gcc - gdb - pkg-config +}: +pkgs.mkShell { + packages = with pkgs; [ + clang-tools_14 + ctags + gcc + gdb + pkg-config - gnumake - bear - meson - ninja - cmake + gnumake + bear + meson + ninja + cmake - valgrind - lcov - massif-visualizer - cppcheck - flawfinder + valgrind + lcov + massif-visualizer + cppcheck + flawfinder - check - curl - ncurses - flex - bison - gperf - gobject-introspection - gtk3 - gtk4 + check + curl + ncurses + flex + bison + gperf + gobject-introspection + gtk3 + gtk4 - # Various libraries - openssl.dev - zlib.dev - curl.dev - libconfig - czmq - libevent.dev + # Various libraries + openssl.dev + zlib.dev + curl.dev + libconfig + czmq + libevent.dev - # LVGL - SDL2 - libffi.dev - ]; - inputsFrom = with pkgs; [default]; - meta.platforms = nixpkgs.lib.platforms.linux; - } + # LVGL + SDL2 + libffi.dev + ]; + inputsFrom = with pkgs; [default]; + meta.platforms = pkgs.lib.platforms.linux; +} -- cgit v1.2.3