Merge pull request #297783 from K900/fix-kde-meta-better

kdePackages.mkKdeDerivation: pass pos explicitly instead of as part of meta
This commit is contained in:
K900 2024-03-21 21:36:00 +03:00 committed by GitHub
commit 9b1635f1e7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -112,16 +112,15 @@ in
"meta"
];
meta = let
pos = builtins.unsafeGetAttrPos "pname" args;
in {
meta = {
description = projectInfo.${pname}.description;
homepage = "https://invent.kde.org/${projectInfo.${pname}.repo_path}";
license = lib.filter (l: l != null) (map (l: licensesBySpdxId.${l}) licenseInfo.${pname});
maintainers = lib.teams.qt-kde.members;
# Platforms are currently limited to what upstream tests in CI, but can be extended if there's interest.
platforms = lib.platforms.linux ++ lib.platforms.freebsd;
position = "${pos.file}:${toString pos.line}";
} // (args.meta or { });
pos = builtins.unsafeGetAttrPos "pname" args;
in
stdenv.mkDerivation (defaultArgs // cleanArgs // { inherit meta; })
stdenv.mkDerivation (defaultArgs // cleanArgs // { inherit meta pos; })