fa5436e0a7
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
12 lines
330 B
Nix
12 lines
330 B
Nix
{ lib }:
|
|
|
|
{
|
|
genFinalPackage = pkg: args:
|
|
let
|
|
expectedArgs = with lib;
|
|
lib.naturalSort (lib.attrNames args);
|
|
existingArgs = with lib;
|
|
naturalSort (intersectLists expectedArgs (attrNames (functionArgs pkg.override)));
|
|
in
|
|
if existingArgs != expectedArgs then pkg else pkg.override args;
|
|
}
|