Skip to content

eisbaw/cursor-cli-nixified

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

Cursor Agent for NixOS

A Nix package for Cursor Agent CLI that works on NixOS.

Official Packaging

This package is now officially packaged and maintained in nixpkgs. The official package provides the same functionality with regular updates and maintenance.

The Problem

Cursor Agent ships with a pre-packaged Node.js binary that is dynamically linked against FHS (Filesystem Hierarchy Standard) paths like /lib64/ld-linux-x86-64.so.2 and expects standard library locations. This doesn't work on NixOS, which uses the Nix store for all dependencies.

The Solution

This package uses buildFHSUserEnv to wrap the bundled Cursor Agent binaries in an FHS-compatible environment. This allows the pre-packaged Node.js binary and native modules to run without modification.

Files

  • default.nix - The Cursor Agent package definition
  • shell.nix - A demo development environment that includes cursor-agent

Usage

Direct build and run

# Build the package
nix-build default.nix

# Run cursor-agent
./result/bin/cursor-agent --version
./result/bin/cursor-agent --help

Use in a development shell

# Enter the shell
nix-shell

# cursor-agent is now available
cursor-agent --version

Or run commands directly:

nix-shell --run "cursor-agent --help"

To update to a newer version, change the version and sha256 in default.nix.

About

Cursor CLI nixified

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages