Skip to content

Commit

Permalink
Improve rattler-build installation
Browse files Browse the repository at this point in the history
  • Loading branch information
JafarAbdi committed Apr 30, 2024
1 parent 9cba2f9 commit c5c1ce2
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions fish/conf.d/installs.fish
Original file line number Diff line number Diff line change
Expand Up @@ -733,15 +733,6 @@ function install-syncthing
sudo systemctl enable syncthing@$USER.service && sudo systemctl start syncthing@$USER.service
end

function install-rattler
set -l TMP_DIR (mktemp -d -p /tmp install-XXXXXX)
cd $TMP_DIR
install-from-github "prefix-dev/rattler-build" "rattler-build-.*-x86_64-unknown-linux-gnu.tar.gz"
tar xzf rattler-build* --strip-components 1
mv rattler-build ~/.local/bin
sudo apt install -y patchelf
end

# Profilers
function install-pyinstrument
pip3 install -U pyinstrument
Expand Down Expand Up @@ -780,6 +771,12 @@ function install-gcloud
gcloud auth application-default login
end

function install-rattler-build
wget https://github.com/prefix-dev/rattler-build/releases/latest/download/rattler-build-x86_64-unknown-linux-musl -O ~/.local/bin/rattler-build
chmod +x ~/.local/bin/rattler-build
rattler-build completion --shell=fish > ~/.config/fish/completions/rattler-build.fish
end

function install-pixi
wget https://github.com/prefix-dev/pixi/releases/latest/download/pixi-x86_64-unknown-linux-musl -O ~/.local/bin/pixi
chmod +x ~/.local/bin/pixi
Expand Down

0 comments on commit c5c1ce2

Please sign in to comment.