Skip to content

Entire license in package derivations. #2126

Open
@Rosuavio

Description

@Rosuavio

Is your feature request related to a problem? Please describe.
Working on automatically creating containers from cabal exe's (input-output-hk/iogx#26), and I want to provide the same license information specified in the cabal file to container's license meta data. The cabal exe allows the user to specify an SPDX License Expression and the container allows SPDX License Expressions. I want the be able to put the same expression from the cabal file into the container.

While haskell.nix does parse the license expression, as far as I know its only stored in meta.licenses as a list of license. That list does not preserve the relations between the licenses used (WITH, AND, OR) so the original string from the cabal file is unrecoverable from content from meta.licenses.

Describe the solution you'd like
And extra attribute somewhere in the package with the entire original string.

Describe alternatives you've considered
Change nixpkgs to allow entire SPDX license expressions in meta somewhere or something isomorphic to SPDX license expressions.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestpreservedKeep stale bot away

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions