Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

purs: 0.15.10 -> 0.15.15 #234

Merged
merged 1 commit into from
Mar 11, 2024
Merged

purs: 0.15.10 -> 0.15.15 #234

merged 1 commit into from
Mar 11, 2024

Conversation

srhhma
Copy link

@srhhma srhhma commented Mar 11, 2024

array=(
  0.15.16-0
  0.15.15
  0.15.14
  0.15.13
  0.15.12
  0.15.11
)


owner="purescript"
repo="purescript"

for version in "${array[@]}"; do
  cp "./purs/0.15.9.nix" "./purs/${version}.nix"
  sed -i "s/0.15.9/${version}/" "./purs/${version}.nix"

  x86_64_linux_url="https://github.com/$owner/$repo/releases/download/v$version/linux64.tar.gz"
  echo "x86_64-linux_url=$x86_64_linux_url"
  x86_64_darwin_url="https://github.com/$owner/$repo/releases/download/v$version/macos.tar.gz"
  echo "x86_64_darwin_url=$x86_64_darwin_url"
  aarch64_darwin_url="https://github.com/$owner/$repo/releases/download/v$version/macos-arm64.tar.gz"
  echo "aarch64_darwin_url=$aarch64_darwin_url"

  sed -i "s/0rabinklsd8bs16f03zv7ij6d1lv4w2xwvzzgkwc862gpqvz9jq3/$(nix-prefetch-url --quiet $x86_64_linux_url)/" "./purs/${version}.nix"
  sed -i "s/1xxg79rlf7li9f73wdbwif1dyy4hnzpypy6wx4zbnvap53habq9f/$(nix-prefetch-url --quiet $x86_64_darwin_url)/" "./purs/${version}.nix"
  sed -i "s/16ci26pgrw0zmnyn1zj129y9624cqwzrhqglc8mgfg4k7rxvqy2a/$(nix-prefetch-url --quiet $aarch64_darwin_url)/" "./purs/${version}.nix"
done

for version in "${array[@]}"; do
  echo "purs-${version//./_} = import ./purs/${version}.nix {"
  echo "  inherit pkgs;"
  echo "};"
done

@jamesdbrock jamesdbrock merged commit 117fd96 into justinwoo:master Mar 11, 2024
2 checks passed
@jamesdbrock
Copy link
Collaborator

Looks good, thanks @srhhma !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants