Skip to content

Commit

Permalink
kdePackages.mkKdeDerivation: fix meta.pos
Browse files Browse the repository at this point in the history
  • Loading branch information
SuperSandro2000 committed Mar 21, 2024
1 parent c2684b4 commit a7f49e8
Showing 1 changed file with 6 additions and 5 deletions.
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; }; }

0 comments on commit a7f49e8

Please sign in to comment.