nimble/nimble.nimble
Yuriy Glukhov 68b1b67733 Fixed #274
2016-11-09 22:45:45 +02:00

24 lines
564 B
Nim

when fileExists("src/nimblepkg/common.nim"):
# In the git repository the Nimble sources are in a ``src`` directory.
import src/nimblepkg/common
else:
# When the package is installed, the ``src`` directory disappears.
import nimblepkg/common
# Package
version = nimbleVersion
author = "Dominik Picheta"
description = "Nim package manager."
license = "BSD"
bin = @["nimble"]
srcDir = "src"
# Dependencies
requires "nim >= 0.13.0", "compiler#head"
task tests, "Run the Nimble tester!":
withDir "tests":
exec "nim c -r tester"