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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

kdePackages.mkKdeDerivation: fix meta.pos #297780

Closed
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
11 changes: 6 additions & 5 deletions pkgs/kde/lib/mk-kde-derivation.nix
Expand Up @@ -112,16 +112,17 @@ 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 { });

position = let
pos = builtins.unsafeGetAttrPos "pname" args;
in "${pos.file}:${toString pos.line}";
in
stdenv.mkDerivation (defaultArgs // cleanArgs // { inherit meta; })
lib.recursiveUpdate (stdenv.mkDerivation (defaultArgs // cleanArgs // { inherit meta; })) { meta = { inherit position; }; }