diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2022-10-12 10:00:39 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-12 10:00:39 +0200 |
commit | f3193edd87be915910f0ae239b058713ef685c74 (patch) | |
tree | 8f72bdfff8dcd18784c84af36e804f0f3f128708 /src/libexpr/primops.cc | |
parent | ac0fb38e8a5a25a84fa17704bd31b453211263eb (diff) | |
parent | 5e24863d5a47b4fc99ab3c03e3903fc11de142f6 (diff) |
Merge pull request #7149 from amjoseph-nixpkgs/pr/intersectAttrs/values
parseDrvName: remove doc/impl discrepancy, add test covering the gap
Diffstat (limited to 'src/libexpr/primops.cc')
-rw-r--r-- | src/libexpr/primops.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libexpr/primops.cc b/src/libexpr/primops.cc index 28b998474..840bfecef 100644 --- a/src/libexpr/primops.cc +++ b/src/libexpr/primops.cc @@ -3821,8 +3821,8 @@ static RegisterPrimOp primop_parseDrvName({ .args = {"s"}, .doc = R"( Split the string *s* into a package name and version. The package - name is everything up to but not including the first dash followed - by a digit, and the version is everything following that dash. The + name is everything up to but not including the first dash not followed + by a letter, and the version is everything following that dash. The result is returned in a set `{ name, version }`. Thus, `builtins.parseDrvName "nix-0.12pre12876"` returns `{ name = "nix"; version = "0.12pre12876"; }`. |