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
|
mkCaretComparison = version: v: let
|
||||||
ver = builtins.splitVersion v;
|
ver = builtins.splitVersion v;
|
||||||
major = l.toInt (l.head ver);
|
major = l.toInt (l.head ver);
|
||||||
minor = builtins.toString (l.toInt (l.head ver) + 1);
|
upper = builtins.toString (l.toInt (l.head ver) + 1);
|
||||||
upper = builtins.concatStringsSep "." (ireplace 0 minor ver);
|
|
||||||
in
|
in
|
||||||
if major == 0
|
if major == 0
|
||||||
then mkTildeComparison version v
|
then mkTildeComparison version v
|
||||||
|
Loading…
Reference in New Issue
Block a user