Skip to content

Commit

Permalink
Merge pull request #313 from hlolli/fix-regex
Browse files Browse the repository at this point in the history
fix regex for darwin-aarch64 compatability
  • Loading branch information
adisbladis committed May 31, 2021
2 parents e0debfb + f786624 commit 18e151e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mk-poetry-dep.nix
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ pythonPackages.callPackage
;
fileCandidates =
let
supportedRegex = ("^.*?(" + builtins.concatStringsSep "|" supportedExtensions + ")");
supportedRegex = ("^.*(" + builtins.concatStringsSep "|" supportedExtensions + ")");
matchesVersion = fname: builtins.match ("^.*" + builtins.replaceStrings [ "." ] [ "\\." ] version + ".*$") fname != null;
hasSupportedExtension = fname: builtins.match supportedRegex fname != null;
isCompatibleEgg = fname: ! lib.strings.hasSuffix ".egg" fname || lib.strings.hasSuffix "py${python.pythonVersion}.egg" fname;
Expand Down

0 comments on commit 18e151e

Please sign in to comment.