Skip to content

Instantly share code, notes, and snippets.

@LnL7
Created April 26, 2019 21:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save LnL7/ae4b7eb21066e3e618a53189b28fc81d to your computer and use it in GitHub Desktop.
Save LnL7/ae4b7eb21066e3e618a53189b28fc81d to your computer and use it in GitHub Desktop.
for f in $(nix-store -qR $(nix-instantiate -A hello) | grep '.drv$'); do
for phase in unpackPhase preUnpack postUnpack patchPhase prePatch postPatch configurePhase preConfigure postConfigure buildPhase preBuild postBuild checkPhase preCheck postCheck installPhase preInstall postInstall fixupPhase preFixup postFixup;
shellcheck -Serror -eSC2148 -eSC2168 <(nix-store -q --binding installPhase $f 2> /dev/null)
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment