1 { lib, stdenv, fetchurl, libxcrypt }:
3 stdenv.mkDerivation rec {
8 url = "mirror://sourceforge/project/socks-relay/socks-relay/srelay-${version}/srelay-${version}.tar.gz";
9 sha256 = "1sn6005aqyfvrlkm5445cyyaj6h6wfyskfncfmds55x34hfyxpvl";
12 patches = [ ./arm.patch ];
14 buildInputs = [ libxcrypt ];
16 installPhase = "install -D srelay $out/bin/srelay";
19 description = "A SOCKS proxy and relay";
20 homepage = "http://socks-relay.sourceforge.net/";
21 platforms = lib.platforms.unix;
22 license = lib.licenses.bsd3;
23 # never built on aarch64-linux since first introduction in nixpkgs
24 broken = stdenv.isLinux && stdenv.isAarch64;
25 mainProgram = "srelay";