Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mkDerivation: Expose pname & version in meta #68620

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Commits on Sep 12, 2019

  1. mkDerivation: Expose pname & version in meta

    Nix only knows of `name` attribute and considers `pname` what parseDrvName
    spits out. Unfortunately, that fails to account for many real-life packages
    that have variants or dashes followed by number in their name.
    Since many of packages in nixpkgs already have pname corresponding
    to project name, we will export it here. We will fallback to the parseDrvName
    algorithm when pname is not present.
    We handle the version similarly.
    
    This will be useful for Repology as well as any other scripted processing of
    Nixpkgs JSON dump.
    
    See: https://github.com/NixOS/nixos-homepage/issues/306
    jtojnar committed Sep 12, 2019
    Configuration menu
    Copy the full SHA
    b08f56c View commit details
    Browse the repository at this point in the history