mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-10-01 20:45:12 +00:00
mozilla binary packages: use lib.hasPrefix
This commit is contained in:
@@ -44,9 +44,7 @@ let
|
||||
|
||||
arch = mozillaPlatforms.${stdenv.hostPlatform.system};
|
||||
|
||||
isPrefixOf = prefix: string: builtins.substring 0 (builtins.stringLength prefix) string == prefix;
|
||||
|
||||
sourceMatches = locale: source: (isPrefixOf source.locale locale) && source.arch == arch;
|
||||
sourceMatches = locale: source: (lib.hasPrefix source.locale locale) && source.arch == arch;
|
||||
|
||||
policies = {
|
||||
DisableAppUpdate = true;
|
||||
|
||||
@@ -46,9 +46,7 @@ let
|
||||
|
||||
arch = mozillaPlatforms.${stdenv.hostPlatform.system} or throwSystem;
|
||||
|
||||
isPrefixOf = prefix: string: builtins.substring 0 (builtins.stringLength prefix) string == prefix;
|
||||
|
||||
sourceMatches = locale: source: (isPrefixOf source.locale locale) && source.arch == arch;
|
||||
sourceMatches = locale: source: (lib.hasPrefix source.locale locale) && source.arch == arch;
|
||||
|
||||
defaultSource = lib.findFirst (sourceMatches "en-US") { } sources;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user