Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Generate installer script for each PR/push
This works by using Cachix feature of serving a file from a store path.
- Loading branch information
1 parent
4e98f03
commit 20b4328
Showing
2 changed files
with
19 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#!/usr/bin/env bash | ||
|
||
installerHash=$(nix-instantiate -A outputs.hydraJobs.installerScript.outPath --eval | cut -b13-44) | ||
|
||
cat << EOF > installer.sh | ||
curl -sfL https://$CACHIX_NAME.cachix.org/serve/$installerHash/install \ | ||
| sh --tarball-url https://$CACHIX_NAME.cachix.org/serve "\$@" | ||
EOF |