From 95596f677eabaebb8eeee8c984d81e8337319d9e Mon Sep 17 00:00:00 2001 From: James Sanders Date: Tue, 1 Apr 2014 10:27:25 -0600 Subject: [PATCH] Add rust-nightly Just started being released: https://mail.mozilla.org/pipermail/rust-dev/2014-March/009295.html --- Casks/rust-nightly.rb | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 Casks/rust-nightly.rb diff --git a/Casks/rust-nightly.rb b/Casks/rust-nightly.rb new file mode 100644 index 000000000..07908f371 --- /dev/null +++ b/Casks/rust-nightly.rb @@ -0,0 +1,12 @@ +class RustNightly < Cask + arch = `uname -m`.chomp + arch = 'i686' if arch.empty? + pkgname = "rust-nightly-#{arch}-apple-darwin.pkg" + + url "http://static.rust-lang.org/dist/#{pkgname}" + homepage 'http://www.rust-lang.org/' + version 'latest' + install pkgname + no_checksum + uninstall :pkgutil => 'org.rust-lang.rust' +end