stockholm/krebs/5pkgs/simple/default.nix

17 lines
584 B
Nix
Raw Normal View History

self: super:
let
# This callPackage will try to detect obsolete overrides.
lib = super.stockholm.lib;
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 {});
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
else override;
in
lib.mapNixDir (path: callPackage path {}) ./.