Unverified Commit c0286526 authored by Nicky Mouha's avatar Nicky Mouha Committed by GitHub
Browse files

tsocks: fix ./configure error

parent 4ebcf755
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -17,6 +17,8 @@ stdenv.mkDerivation rec {

  preConfigure = ''
    sed -i -e "s,\\\/usr,"$(echo $out|sed -e "s,\\/,\\\\\\\/,g")",g" tsocks
    substituteInPlace configure \
      --replace-fail "main(){return(0);}" "int main(){return(0);}"
    substituteInPlace tsocks --replace /usr $out
  '';