Skip to content

Instantly share code, notes, and snippets.

@avrahamappel
Last active December 2, 2024 21:12
Show Gist options
  • Save avrahamappel/f27e276d948d1c78e05db4a1c4ba5b4d to your computer and use it in GitHub Desktop.
Save avrahamappel/f27e276d948d1c78e05db4a1c4ba5b4d to your computer and use it in GitHub Desktop.
Snippet to test nixpkgs for failing bundix with git gems
#!/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