We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 86d8b74 commit 7d735e7Copy full SHA for 7d735e7
Formula/m/min-lang.rb
@@ -0,0 +1,25 @@
1
+class MinLang < Formula
2
+ desc "Small but practical concatenative programming language and shell"
3
+ homepage "https://min-lang.org"
4
+ url "https://github.com/h3rald/min/archive/refs/tags/v0.46.0.tar.gz"
5
+ sha256 "017178f88bd923862b64f316098772c1912f2eef9304c1164ba257829f1bbfc2"
6
+ license "MIT"
7
+
8
+ depends_on "nim"
9
+ depends_on "openssl@3"
10
+ depends_on "pcre"
11
12
+ def install
13
+ system "nimble", "build", '--passL:"-lpcre -lssl -lcrypto"'
14
+ bin.install "min"
15
+ end
16
17
+ test do
18
+ testfile = testpath/"test.min"
19
+ testfile.write <<~EOS
20
+ sys.pwd sys.ls (fs.type "file" ==) filter '> sort
21
+ puts!
22
+ EOS
23
+ assert_match testfile.to_s, shell_output("#{bin}/min test.min")
24
25
+end
0 commit comments