summaryrefslogtreecommitdiff
path: root/homebrew/nim
diff options
context:
space:
mode:
Diffstat (limited to 'homebrew/nim')
-rw-r--r--homebrew/nim/.beer28
-rw-r--r--homebrew/nim/.make.sh-auto8
-rw-r--r--homebrew/nim/_metadata/description1
-rw-r--r--homebrew/nim/_metadata/homepage1
-rw-r--r--homebrew/nim/_metadata/name1
-rw-r--r--homebrew/nim/_metadata/version1
-rwxr-xr-xhomebrew/nim/download.sh1
7 files changed, 41 insertions, 0 deletions
diff --git a/homebrew/nim/.beer b/homebrew/nim/.beer
new file mode 100644
index 000000000..904b163f9
--- /dev/null
+++ b/homebrew/nim/.beer
@@ -0,0 +1,28 @@
+{
+ "name": "Nim",
+ "description": "Statically typed, imperative programming language",
+ "url": "https://nim-lang.org/download/nim-0.19.4.tar.xz",
+ "mirror": null,
+ "homepage": "https://nim-lang.org/",
+ "depends": [],
+ "resource": [
+ {
+ "name": "csources",
+ "url": "https://github.com/nim-lang/csources.git"
+ }
+ ],
+ "conflicts": [],
+ "patches": [],
+ "install": [
+ "if build.head?",
+ "resource(\"csources\").stage do",
+ "system \"/bin/sh\", \"build.sh\"",
+ "build_bin = buildpath/\"bin\"",
+ "build_bin.install \"bin/nim\"",
+ "end",
+ "else",
+ "system \"/bin/sh\", \"build.sh\""
+ ],
+ "version": "0.19.4",
+ "file": "nim.rb"
+} \ No newline at end of file
diff --git a/homebrew/nim/.make.sh-auto b/homebrew/nim/.make.sh-auto
new file mode 100644
index 000000000..337d74d91
--- /dev/null
+++ b/homebrew/nim/.make.sh-auto
@@ -0,0 +1,8 @@
+pkg:setup
+resource("csources").stage do
+/bin/sh build.sh
+build_bin = buildpath/"bin"
+build_bin.install "bin/nim"
+end
+else
+/bin/sh build.sh
diff --git a/homebrew/nim/_metadata/description b/homebrew/nim/_metadata/description
new file mode 100644
index 000000000..c4dd3b64f
--- /dev/null
+++ b/homebrew/nim/_metadata/description
@@ -0,0 +1 @@
+Statically typed, imperative programming language
diff --git a/homebrew/nim/_metadata/homepage b/homebrew/nim/_metadata/homepage
new file mode 100644
index 000000000..21cbd9b3e
--- /dev/null
+++ b/homebrew/nim/_metadata/homepage
@@ -0,0 +1 @@
+https://nim-lang.org/
diff --git a/homebrew/nim/_metadata/name b/homebrew/nim/_metadata/name
new file mode 100644
index 000000000..ee4cd62ce
--- /dev/null
+++ b/homebrew/nim/_metadata/name
@@ -0,0 +1 @@
+Nim
diff --git a/homebrew/nim/_metadata/version b/homebrew/nim/_metadata/version
new file mode 100644
index 000000000..c0b8d590f
--- /dev/null
+++ b/homebrew/nim/_metadata/version
@@ -0,0 +1 @@
+0.19.4
diff --git a/homebrew/nim/download.sh b/homebrew/nim/download.sh
new file mode 100755
index 000000000..76cbe8f8d
--- /dev/null
+++ b/homebrew/nim/download.sh
@@ -0,0 +1 @@
+wget https://nim-lang.org/download/nim-0.19.4.tar.xz \ No newline at end of file