nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at devShellTools-shell 24 lines 632 B view raw
1Avoid build-only store references embedding into 'mutt -v'. 2--- a/txt2c.sh 3+++ b/txt2c.sh 4@@ -21,8 +21,18 @@ txt2c_fallback () { 5 echo ";" 6 } 7 8+nix_store_mangle() { 9+ # consume stdin 10+ 11+ # Avoid build-only references to nix store. These are usually 12+ # 'gcc -v' output embedded into 'mutt -v'. But also might be 13+ # ./configure-passed arguments. 14+ sed \ 15+ -e "s|$NIX_STORE/[a-z0-9]\{32\}-|$NIX_STORE/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-|g" 16+} 17+ 18 if ./txt2c test </dev/null >/dev/null 2>&1; then 19- ./txt2c "$1" 20+ nix_store_mangle | ./txt2c "$1" 21 else 22- txt2c_fallback "$1" 23+ nix_store_mangle | txt2c_fallback "$1" 24 fi