diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index e38513d65a77..126848d3902b 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -154,11 +154,6 @@ rec { version = getConfig [ "environment" "versions" name ]; }; - # Whether user enabled given feature for the given package? - getFlag = flag: package: default: - getConfig [ "environment" "flags" package flag ] - (getConfig [ "environment" "flags" "default" flag ] default); - # The contents of the configuration file found at $NIXPKGS_CONFIG or # $HOME/.nixpkgs/config.nix. config = @@ -2279,7 +2274,7 @@ rec { pcre = import ../development/libraries/pcre { inherit fetchurl stdenv; - unicodeSupport = getFlag "unicode" "pcre" false; + unicodeSupport = getConfig ["pcre" "unicode"] false; }; poppler = import ../development/libraries/poppler {