yusdacra / nix-cargo-integration

Library to easily and effortlessly integrate Cargo projects with Nix.
https://flake.parts/options/nix-cargo-integration.html
MIT License
182 stars 19 forks source link

`drvConfig.mkDerivation.meta` is not propagated to the derivation #137

Closed liff closed 1 year ago

liff commented 1 year ago

From the example I understood that the attributes in mkDerivation would be included in the derivation pretty much verbatim. However, only the license attribute is present.

Here is a repository demonstrating the problem, and a command:

$ nix eval github:liff/nix-cargo-integration-issue-137#default.meta.mainProgram
error: flake 'github:liff/nix-cargo-integration-issue-137' does not provide attribute 'packages.x86_64-linux.default.meta.mainProgram', 'legacyPackages.x86_64-linux.default.meta.mainProgram' or 'default.meta.mainProgram'

The meta attributes is defined in crates.nix. Whether it’s in nci.projects or nci.crates makes no difference.

yusdacra commented 1 year ago

This should be fixed after https://github.com/nix-community/dream2nix/pull/716 is merged and nci updates to include the latest d2n commit