mirror of
https://github.com/nix-community/dream2nix.git
synced 2024-12-18 20:11:33 +03:00
fix: php: semver caret comparison
This commit is contained in:
parent
e6fba613fd
commit
2ffe69f378
@ -20,8 +20,7 @@
|
||||
mkCaretComparison = version: v: let
|
||||
ver = builtins.splitVersion v;
|
||||
major = l.toInt (l.head ver);
|
||||
minor = builtins.toString (l.toInt (l.head ver) + 1);
|
||||
upper = builtins.concatStringsSep "." (ireplace 0 minor ver);
|
||||
upper = builtins.toString (l.toInt (l.head ver) + 1);
|
||||
in
|
||||
if major == 0
|
||||
then mkTildeComparison version v
|
||||
|
Loading…
Reference in New Issue
Block a user