1: { lib }: 2: 3: with builtins; 4: with lib; { 5: needWorkaround = compareVersions nixVersion "2" != -1; 6: }