Unverified Commit 9b1635f1 authored by K900's avatar K900 Committed by GitHub
Browse files

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

kdePackages.mkKdeDerivation: pass pos explicitly instead of as part of meta
parents e34b9b42 7664d1b6
Loading
Loading
Loading
Loading
+4 −5
Original line number Diff line number Diff line
@@ -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; })