Skip to content

Expose nix-env and nix-build operations through an API/library #107

Closed

Description

@svanderburg

The current implementation provides libraries, such as libstore (for store access) and libexpr (for evaluating Nix expressions). It may also be useful to expose nix-env and nix-build operations through a library, allowing external tools such as Disnix to integrate with it.

Right now the only way is to invoke the nix-env or nix-build processes, which is not always very convenient/elegant.

It may also be useful for a e.g. future desktop tool providing a nice GUI to Nix.

Activity

  1. chaoflow commented on Jul 23, 2013

    @chaoflow
    Member

    This would also be nice to have for tpv.nix where we aim to create a python API to all nix facilities.

  2. stale commented on Feb 16, 2021

    @stale

    I marked this as stale due to inactivity. → More info

  3. Ericson2314 commented on Feb 24, 2021

    @Ericson2314
    Member

    We now have https://github.com/NixOS/nix/blob/master/src/libstore/profiles.hh for the heart of nix-env, and a bunch of different things for building, so I'd say this is done?

  4. added a commit that references this issue on Jan 1, 2024
  5. added a commit that references this issue on Feb 26, 2025
  6. added a commit that references this issue on Jul 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

feature

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions