ekala-cmake-nix

Build and troubleshoot CMake-based packages within Nix derivations.

1|Updated Feb 11, 2026
One-click install
npx skills add https://github.com/ekala-project/ekala-claude-skills --skill ekala-cmake-nix
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: ekala-cmake-nix
Source: https://github.com/ekala-project/ekala-claude-skills/tree/main/skills/ekala-cmake-nix
Command: npx skills add https://github.com/ekala-project/ekala-claude-skills --skill ekala-cmake-nix

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill simplifies the complex process of building CMake-based software within the Nix package manager, helping users overcome common integration challenges.

Core Features & Use Cases

  • Nix Derivation Assistance: Guides users in creating Nix derivations for CMake projects, correctly configuring build inputs and build phases.
  • Troubleshooting CMake+Nix Issues: Helps diagnose and resolve problems related to CMake configuration, dependency finding, and installation paths within Nix.
  • Use Case: You're trying to package a C++ library that uses CMake for its build system in Nix, but you're encountering errors during the configuration step. This Skill can help you identify the correct Nix attributes and CMake flags to use.

Quick Start

Help me configure a Nix derivation for a CMake project that requires the Boost library.

Frequently Asked Questions about ekala-cmake-nix

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I create a Nix derivation for a CMake project?

Creating a Nix derivation for a CMake project involves correctly configuring build inputs and build phases. You must use CMake-specific Nix attributes to manage the configuration phase, testing, and installation paths.

Why does CMake fail to find dependencies during a Nix build?

CMake fails to find dependencies during a Nix build due to misconfigured build inputs or incorrect CMake flags. Troubleshooting involves identifying the correct Nix attributes to properly expose dependencies to the configuration phase.

How do I fix CMake build type mismatches in Nix?

Fixing CMake build type mismatches in Nix requires adjusting CMake flags within your derivation. You must configure CMake-specific Nix attributes to ensure the build type aligns with the expected configuration phase outputs.

What are CMake-specific Nix attributes for managing installation paths?

CMake-specific Nix attributes for managing installation paths control where built artifacts are placed during the Nix build phases. They ensure the configuration phase correctly sets CMake flags to match the expected Nix store structure.

Can I use Nix to build a C++ library that requires Boost via CMake?

You can build a C++ library requiring Boost via CMake in Nix by adding Boost to your derivation's build inputs. This ensures the CMake configuration phase successfully discovers the Boost dependency during the build.