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.
$ 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.
From the example I understood that the attributes in
mkDerivation
would be included in the derivation pretty much verbatim. However, only thelicense
attribute is present.Here is a repository demonstrating the problem, and a command:
The
meta
attributes is defined in crates.nix. Whether it’s innci.projects
ornci.crates
makes no difference.