gnomeExtensions: Fix the package names

I did not realize the attribute names are derived from the Nix package names
so I accidentally, renamed them in https://github.com/NixOS/nixpkgs/pull/124295.
This commit is contained in:
Jan Tojnar 2021-05-25 02:34:21 +02:00
parent db2166a2d3
commit 571d540abf
No known key found for this signature in database
GPG key ID: 7FAB2A15F7A607A4
2 changed files with 6 additions and 3 deletions

View file

@ -47,8 +47,11 @@ let
license = lib.licenses.gpl2Plus; # https://wiki.gnome.org/Projects/GnomeShell/Extensions/Review#Licensing
maintainers = with lib.maintainers; [ piegames ];
};
# Store the extension's UUID, because we might need it at some places
passthru.extensionUuid = uuid;
passthru = {
extensionPortalSlug = pname;
# Store the extension's UUID, because we might need it at some places
extensionUuid = uuid;
};
};
in
lib.makeOverridable buildGnomeExtension

View file

@ -48,7 +48,7 @@ let
))
# Map all extensions to their pname, with potential overwrites
(map (extension:
lib.nameValuePair (extensionRenames.${extension.extensionUuid} or extension.pname) extension
lib.nameValuePair (extensionRenames.${extension.extensionUuid} or extension.extensionPortalSlug) extension
))
builtins.listToAttrs
];