nimble/nimble.nimble
Dominik Picheta 2a42052099 Merge pull request #282 from yglukhov/fix-install-from-source
Fixed installation from git dir
2016-12-23 16:35:49 +01:00

27 lines
685 B
Nim

import ospaths
template thisModuleFile: string = instantiationInfo(fullPaths = true).filename
when fileExists(thisModuleFile.parentDir / "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 test, "Run the Nimble tester!":
withDir "tests":
exec "nim c -r tester"