diff options
author | K900 <me@0upti.me> | 2024-03-21 20:54:24 +0300 |
---|---|---|
committer | K900 <me@0upti.me> | 2024-03-21 20:54:24 +0300 |
commit | 7664d1b69820b448c649d1eac5733dc29537398c (patch) | |
tree | 4ee08d583d80061aebde8fe21dee168bc2ee8901 | |
parent | 783b241f949bea90e3347ce516ad8af84bde3126 (diff) |
kdePackages.mkKdeDerivation: pass pos explicitly instead of as part of meta
Makes both meta.broken and nix edit work correctly.
-rw-r--r-- | pkgs/kde/lib/mk-kde-derivation.nix | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/pkgs/kde/lib/mk-kde-derivation.nix b/pkgs/kde/lib/mk-kde-derivation.nix index 08b956d388490..13f938d69040f 100644 --- a/pkgs/kde/lib/mk-kde-derivation.nix +++ b/pkgs/kde/lib/mk-kde-derivation.nix @@ -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; }) |