Merge pull request #277899 from trofi/build-support-fetchgithub-fix-metadata-eval

build-support/fetchgithub: fix metadata eval for arguments without lo…
This commit is contained in:
Mario Rodas 2024-01-12 17:56:46 -05:00 committed by GitHub
commit 19ce690703
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -19,7 +19,7 @@ let
baseUrl = "https://${githubBase}/${owner}/${repo}";
newMeta = meta // {
homepage = meta.homepage or baseUrl;
} // lib.optionalAttrs (position != null) {
# to indicate where derivation originates, similar to make-derivation.nix's mkDerivation
position = "${position.file}:${toString position.line}";
};