diff options
| author | mo khan <mo.khan@gmail.com> | 2020-08-04 14:51:49 -0600 |
|---|---|---|
| committer | mo khan <mo.khan@gmail.com> | 2020-08-04 18:18:36 -0600 |
| commit | 4b130604be2dcd96bde5f708e0f4dc91f86bd89b (patch) | |
| tree | b8333834b2be76fdd357a22fcda7212909e32eef /config/software/asdf_rust.rb | |
| parent | ed6e39123472fecf4eb8fef1e75db28a3b4d1ff2 (diff) | |
Build debian packages for tools
Diffstat (limited to 'config/software/asdf_rust.rb')
| -rw-r--r-- | config/software/asdf_rust.rb | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/config/software/asdf_rust.rb b/config/software/asdf_rust.rb new file mode 100644 index 0000000..fa1016d --- /dev/null +++ b/config/software/asdf_rust.rb @@ -0,0 +1,28 @@ +# frozen_string_literal: true + +name "asdf_rust" +default_version "1.45.0" +whitelist_file "lib/rustlib/x86_64-unknown-linux-gnu/bin/rust-lld" + +source url: "https://static.rust-lang.org/dist/rust-#{version}-x86_64-unknown-linux-gnu.tar.gz" +relative_path "rust-#{version}-x86_64-unknown-linux-gnu" + +version "1.45.0" do + source sha256: "c34ed8722759fd60c94dbc9069833da5b3b873dcd19afaa9b34c1ce2c2cfa229" +end + +build do + env = with_standard_compiler_flags(with_embedded_path) + command "sh install.sh" \ + " --prefix=#{install_dir}" \ + " --components=rustc,cargo" \ + " --verbose", env: env +end + +build do + delete "#{install_dir}/share" + delete "#{install_dir}/etc" + delete "#{install_dir}/bin/rustdoc" + delete "#{install_dir}/bin/rust-gdb" + delete "#{install_dir}/bin/rust-gdbgui" +end |
