File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -25,11 +25,10 @@ in mkShell {
2525
2626  shellHook =  lib . optionalString ( ! isMacM1 )  '' 
2727    echo "Patching env.sh to use Nix Nim..." 
28-     env_sh="$PWD /vendor/github.com/waku-org/sds-go-bindings/third_party/nim-sds/vendor/nimbus-build-system/scripts/env.sh" 
28+     env_sh="${  toString   . /vendor/github.com/waku-org/sds-go-bindings/third_party/nim-sds/vendor/nimbus-build-system/scripts/env.sh} " 
2929    if [ -f "$env_sh" ]; then 
3030      echo "Replacing nim by ${ pkgs . nim } /bin/nim" 
31-       ${ pkgs . gnused } /bin/substituteInPlace "$env_sh" \ 
32-         --replace-warn "/vendor/Nim/bin/nim" "${ pkgs . nim } /bin/nim" 
31+       ${ pkgs . gnused } /bin/sed -i 's#/vendor/Nim/bin/nim#${ pkgs . nim } /bin/nim#g' "$env_sh" 
3332    else 
3433      echo "Warning: $env_sh not found (PWD=$PWD)" 
3534    fi 
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments