Skip to content

Commit

Permalink
tsocks: fix ./configure error
Browse files Browse the repository at this point in the history
  • Loading branch information
nmouha authored Dec 30, 2024
1 parent 4ebcf75 commit c028652
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkgs/by-name/ts/tsocks/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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
'';

Expand Down

0 comments on commit c028652

Please sign in to comment.