Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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
- Loading branch information