summaryrefslogtreecommitdiff
path: root/tomcrypt.nimble
diff options
context:
space:
mode:
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"