Skip to content

Commit 8561b31

Browse files
authored
Makes nimble compile with nim 1.6 (#1300)
1 parent 869e81a commit 8561b31

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

nimble.nimble

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ srcDir = "src"
1010
installExt = @["nim"]
1111

1212
# Dependencies
13-
requires "nim >= 2.0.12"
13+
requires "nim >= 1.6.20"
1414

1515
when defined(nimdistros):
1616
import distros

src/nimblepkg/options.nim

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ type
5959
# If not provided by default it applies to the current directory package.
6060
# For now, it is used only by the run action and it is ignored by others.
6161
pkgCachePath*: string # Cache used to store package downloads
62-
useSatSolver*: bool = true
62+
useSatSolver*: bool
6363
extraRequires*: seq[PkgTuple] # extra requires parsed from the command line
6464
nimBinariesDir*: string # Directory where nim binaries are stored. Separated from nimbleDir as it can be changed by the user/tests
6565
disableNimBinaries*: bool # Whether to disable the use of nim binaries
@@ -754,7 +754,8 @@ proc initOptions*(): Options =
754754
noColor: not isatty(stdout),
755755
startDir: getCurrentDir(),
756756
nimBinariesDir: getHomeDir() / ".nimble" / "nimbinaries",
757-
maxTaggedVersions: 4
757+
maxTaggedVersions: 4,
758+
useSatSolver: true
758759
)
759760

760761
proc handleUnknownFlags(options: var Options) =

0 commit comments

Comments
 (0)