Last active
December 2, 2024 21:12
-
-
Save avrahamappel/f27e276d948d1c78e05db4a1c4ba5b4d to your computer and use it in GitHub Desktop.
Snippet to test nixpkgs for failing bundix with git gems
This file contains hidden or 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
#!/bin/bash | |
PAYROLL=~/humility/applications/payroll | |
if [[ -f gemset.nix ]]; then | |
rm gemset.nix | |
fi | |
nix run .#bundix --log-format bar-with-logs -- \ | |
--lockfile=$PAYROLL/Gemfile.test.lock \ | |
--gemfile=$PAYROLL/Gemfile | |
if [[ "$(nix-instantiate --eval -E 'builtins.all (builtins.hasAttr "source") (builtins.attrValues (import ./gemset.nix))')" == false ]]; then | |
exit 1 | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment