2017-05-23 23:43:50 +00:00
|
|
|
self: super:
|
2017-05-24 00:03:46 +00:00
|
|
|
|
|
|
|
let
|
|
|
|
# This callPackage will try to detect obsolete overrides.
|
2021-10-12 20:08:07 +00:00
|
|
|
lib = super.stockholm.lib;
|
2017-05-24 00:03:46 +00:00
|
|
|
callPackage = path: args: let
|
|
|
|
override = self.callPackage path args;
|
2021-10-12 17:36:09 +00:00
|
|
|
upstream = lib.optionalAttrs (override ? "name")
|
|
|
|
(super.${(lib.parseDrvName override.name).name} or {});
|
2017-05-24 00:03:46 +00:00
|
|
|
in if upstream ? "name" &&
|
|
|
|
override ? "name" &&
|
2021-10-12 17:36:09 +00:00
|
|
|
lib.compareVersions upstream.name override.name != -1
|
|
|
|
then lib.trace "Upstream `${upstream.name}' gets overridden by `${override.name}'." override
|
2017-05-24 00:03:46 +00:00
|
|
|
else override;
|
|
|
|
in
|
2021-10-12 20:08:07 +00:00
|
|
|
lib.mapNixDir (path: callPackage path {}) ./.
|