From bbfa047848dc17f28ae72236a0d4bfdc184fa6f3 Mon Sep 17 00:00:00 2001 From: Robert Hensing Date: Thu, 5 Sep 2019 17:10:52 +0200 Subject: [PATCH] Remove hasInfix usage for compatibility with older nixpkgs --- parse-git-config.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/parse-git-config.nix b/parse-git-config.nix index b98e6d1..c9a0c49 100644 --- a/parse-git-config.nix +++ b/parse-git-config.nix @@ -18,7 +18,7 @@ # { lib ? import , ... }: let - inherit (lib.strings) splitString hasPrefix removePrefix removeSuffix hasInfix replaceStrings; + inherit (lib.strings) splitString hasPrefix removePrefix removeSuffix replaceStrings; inherit (lib.lists) foldl' head tail; parseIniText = text: @@ -33,7 +33,7 @@ let then r // { section = removePrefix "[" (removeSuffix "]" line); } - else if hasInfix "=" line then + else if builtins.match ".*=.*" line != null then let s = splitString "=" line; s0 = head s;