diff options
author | jeschli <jeschli@gmail.com> | 2019-03-21 20:09:09 +0100 |
---|---|---|
committer | jeschli <jeschli@gmail.com> | 2019-03-21 20:09:09 +0100 |
commit | 34bec52f303b0db7af47ae06605ef2bbbcc6b303 (patch) | |
tree | 12b029aee9f63dc2b0b70c280450c240f4183f28 /lib/default.nix | |
parent | a670535cb361a1019034d078c7dc13bc058b5081 (diff) | |
parent | db8d53cefd8f3fae0b48d5a7d175833c8ea408fe (diff) |
Merge branch 'master' of prism.r:stockholm into new-master
Diffstat (limited to 'lib/default.nix')
-rw-r--r-- | lib/default.nix | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/default.nix b/lib/default.nix index 347830e..8ba55b5 100644 --- a/lib/default.nix +++ b/lib/default.nix @@ -9,6 +9,7 @@ let krops = import ../submodules/krops/lib; shell = import ./shell.nix { inherit lib; }; types = nixpkgs-lib.types // import ./types.nix { inherit lib; }; + xml = import ./xml.nix { inherit lib; }; eq = x: y: x == y; ne = x: y: x != y; @@ -145,6 +146,11 @@ let in filter (x: x != []) ([acc.chunk] ++ acc.chunks); + warnOldVersion = oldName: newName: + if compareVersions oldName newName != -1 then + trace "Upstream `${oldName}' gets overridden by `${newName}'." newName + else + newName; }; in |