summaryrefslogtreecommitdiff
path: root/tomcrypt.nimble
diff options
context:
space:
mode:
authorOskari Timperi <oskari.timperi@iki.fi>2018-03-13 07:31:38 +0200
committerOskari Timperi <oskari.timperi@iki.fi>2018-03-13 07:31:38 +0200
commit8933d9b3573b1dc7c4d51cb3c31eb5a457aab549 (patch)
treeedff908601b6d37af93b4542bb276cb4172fbf7a /tomcrypt.nimble
downloadtomcrypt-nim-8933d9b3573b1dc7c4d51cb3c31eb5a457aab549.tar.gz
tomcrypt-nim-8933d9b3573b1dc7c4d51cb3c31eb5a457aab549.zip
Initial commit
Diffstat (limited to 'tomcrypt.nimble')
-rw-r--r--tomcrypt.nimble18
1 files changed, 18 insertions, 0 deletions
diff --git a/tomcrypt.nimble b/tomcrypt.nimble
new file mode 100644
index 0000000..dbb71ad
--- /dev/null
+++ b/tomcrypt.nimble
@@ -0,0 +1,18 @@
+# Package
+
+version = "0.1.0"
+author = "Oskari Timperi"
+description = "libtomcrypt for Nim"
+license = "MIT"
+srcDir = "src"
+
+# Dependencies
+
+requires "nim >= 0.18.0"
+requires "tommath"
+
+before install:
+ if not existsEnv("TOMCRYPT_NO_CLONE"):
+ exec "git clone --branch v1.18.1 --depth 1 https://github.com/libtom/libtomcrypt.git /tmp/source-libtomcrypt"
+
+ exec "nim c -r tools/libtomcrypt.nim"