mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-18 19:03:28 +00:00
kdePackages.mkKdeDerivation: pass pos explicitly instead of as part of meta
Makes both meta.broken and nix edit work correctly.
This commit is contained in:
parent
783b241f94
commit
7664d1b698
@ -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; })
|
||||
|
Loading…
Reference in New Issue
Block a user