We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Details: https://github.com/nim-lang/nimble#creating-packages
Example: https://github.com/nim-lang/nimble/blob/master/nimble.nimble
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" when defined(nimdistros): import distros if detectOs(Ubuntu): foreignDep "libssl-dev" else: foreignDep "openssl" task test, "Run the Nimble tester!": withDir "tests": exec "nim c -r tester"
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Details: https://github.com/nim-lang/nimble#creating-packages
Example: https://github.com/nim-lang/nimble/blob/master/nimble.nimble
The text was updated successfully, but these errors were encountered: