diff options
| author | LLLL Colonq <llll@colonq> | 2026-07-10 05:19:06 -0400 |
|---|---|---|
| committer | LLLL Colonq <llll@colonq> | 2026-07-10 05:19:06 -0400 |
| commit | 9ba3ccd51d94e2db6920351eccb9050d1a2c41e1 (patch) | |
| tree | 95d4eb6d18147fea2890aac74f3001a9db1f8c7b /flake.nix | |
| parent | 6f9276b24b371758bf9dbe87110843b6d6dc6f8e (diff) | |
6502: Lua bindings for testing
Diffstat (limited to 'flake.nix')
| -rw-r--r-- | flake.nix | 21 |
1 files changed, 11 insertions, 10 deletions
@@ -11,14 +11,19 @@ pkgs = nixpkgs.legacyPackages.${system}; subpackages = pkgs.lib.filterAttrs (nm: _: builtins.pathExists ./${nm}/packages.nix) (builtins.readDir ./.); lcq = builtins.mapAttrs (nm: _: (import ./${nm}/packages.nix) pkgs lcq) subpackages; - shells = builtins.mapAttrs (nm: d: pkgs.mkShell { - hardeningDisable = ["all"]; - NIX_ENFORCE_NO_NATIVE = "0"; - buildInputs = [ + defaultShell = { + nativeBuildInputs = [ pkgs.musl pkgs.valgrind pkgs.universal-ctags - ] ++ d.native.buildInputs; + ]; + buildInputs = []; + }; + shells = builtins.mapAttrs (nm: d: pkgs.mkShell { + hardeningDisable = ["all"]; + NIX_ENFORCE_NO_NATIVE = "0"; + nativeBuildInputs = defaultShell.nativeBuildInputs ++ d.native.nativeBuildInputs; + buildInputs = defaultShell.buildInputs ++ d.native.buildInputs; }) lcq; in { isPackage = p: (builtins.readDir ./${p}) ? "packages.nix"; @@ -27,11 +32,7 @@ default = pkgs.mkShell { hardeningDisable = ["all"]; NIX_ENFORCE_NO_NATIVE = "0"; - buildInputs = [ - pkgs.musl - pkgs.valgrind - pkgs.universal-ctags - ]; + inherit (defaultShell) nativeBuildInputs buildInputs; }; } // shells; } |
