summary refs log tree commit diff
path: root/pkgs/development/tools/purescript/spago/update.sh
diff options
context:
space:
mode:
author(cdep)illabout <cdep.illabout@gmail.com>2020-02-10 12:54:23 +0900
committerPeter Simons <simons@cryp.to>2020-02-28 20:31:21 +0100
commitb68c9dda98a2d108464e1e142b0e53ae97df79b5 (patch)
treedeefdec5b0549a9e4e3ff1c1c59f146cae0b1112 /pkgs/development/tools/purescript/spago/update.sh
parent671db18e2221371e856e659d47842d96191fbbd6 (diff)
downloadnixpkgs-b68c9dda98a2d108464e1e142b0e53ae97df79b5.tar
nixpkgs-b68c9dda98a2d108464e1e142b0e53ae97df79b5.tar.gz
nixpkgs-b68c9dda98a2d108464e1e142b0e53ae97df79b5.tar.bz2
nixpkgs-b68c9dda98a2d108464e1e142b0e53ae97df79b5.tar.lz
nixpkgs-b68c9dda98a2d108464e1e142b0e53ae97df79b5.tar.xz
nixpkgs-b68c9dda98a2d108464e1e142b0e53ae97df79b5.tar.zst
nixpkgs-b68c9dda98a2d108464e1e142b0e53ae97df79b5.zip
spago: 0.13.1 -> 0.14.0
Diffstat (limited to 'pkgs/development/tools/purescript/spago/update.sh')
-rwxr-xr-xpkgs/development/tools/purescript/spago/update.sh7
1 files changed, 5 insertions, 2 deletions
diff --git a/pkgs/development/tools/purescript/spago/update.sh b/pkgs/development/tools/purescript/spago/update.sh
index 00c9c6d85f1..74bc0105066 100755
--- a/pkgs/development/tools/purescript/spago/update.sh
+++ b/pkgs/development/tools/purescript/spago/update.sh
@@ -20,11 +20,14 @@ spago_derivation_file="${script_dir}/spago.nix"
 old_version="$(sed -En 's/.*\bversion = "(.*?)".*/\1/p' "$spago_derivation_file")"
 
 # This is the latest release version of spago on GitHub.
-new_version=$(curl --silent "https://api.github.com/repos/spacchetti/spago/releases" | jq '.[0].tag_name' --raw-output)
+new_version=$(curl --silent "https://api.github.com/repos/purescript/spago/releases" | jq '.[0].tag_name' --raw-output)
 
 echo "Updating spago from old version $old_version to new version $new_version."
 echo "Running cabal2nix and outputting to ${spago_derivation_file}..."
 
-cabal2nix --revision "$new_version" "https://github.com/spacchetti/spago.git" > "$spago_derivation_file"
+cabal2nix --revision "$new_version" "https://github.com/purescript/spago.git" > "$spago_derivation_file"
+
+# TODO: This should ideally also automatically update the docsSearchVersion
+# from pkgs/development/haskell/configuration-nix.nix.
 
 echo "Finished."