Skip to content

Conversation

@JustAGuyTryingHisBest
Copy link

Motivation

Taken directly from the related issue - This function improves RFC 92 and multi-derivation package support, by allowing the derivation path to be accessed for any output, whose derivations may be distinct, rather than only exposing a single drvPath.

Context

Resolves #10120

Translates solution from NixOS/nixpkgs#281536 to CppNix. Thank you to @roberth for the initial implementation.


Add 👍 to pull requests you find important.

The Nix maintainer team uses a GitHub project board to schedule and track reviews.

@github-actions github-actions bot added the with-tests Issues related to testing. PRs with tests have some priority label Jan 8, 2026
@roberth
Copy link
Member

roberth commented Jan 12, 2026

This should reject nonsensical inputs, just like my Nixpkgs implementation would.

Overly lenient functions produce garbage inputs to other functions, which then produce garbage errors, and we can't make functions less lenient without breaking user expressions, so this really has to be done with care and a bunch of "adversarial" tests.

@JustAGuyTryingHisBest JustAGuyTryingHisBest force-pushed the justaguytryinghisbest/derivationOfPrimop branch from 0fff477 to 210b7fc Compare January 12, 2026 20:31
@github-actions github-actions bot added new-cli Relating to the "nix" command fetching Networking with the outside (non-Nix) world, input locking c api Nix as a C library with a stable interface labels Jan 12, 2026
@JustAGuyTryingHisBest JustAGuyTryingHisBest force-pushed the justaguytryinghisbest/derivationOfPrimop branch from 210b7fc to 08f9ac6 Compare January 12, 2026 20:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

c api Nix as a C library with a stable interface fetching Networking with the outside (non-Nix) world, input locking new-cli Relating to the "nix" command with-tests Issues related to testing. PRs with tests have some priority

Projects

None yet

Development

Successfully merging this pull request may close these issues.

derivationOf primop

2 participants