summaryrefslogtreecommitdiffstats
path: root/krebs/5pkgs/simple/default.nix
blob: 10458001ea287d78bbb29a174c526d06d73aaa12 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
self: super:

let
  # This callPackage will try to detect obsolete overrides.
  lib = import ../../../lib;
  callPackage = path: args: let
    override = self.callPackage path args;
    upstream = lib.optionalAttrs (override ? "name")
      (super.${(lib.parseDrvName override.name).name} or {});
  in if upstream ? "name" &&
        override ? "name" &&
        lib.compareVersions upstream.name override.name != -1
    then lib.trace "Upstream `${upstream.name}' gets overridden by `${override.name}'." override
    else override;
in
  { stockholm.lib = lib; } //
    lib.mapNixDir (path: callPackage path {}) ./.