2022-10-30 15:09:59 +00:00
|
|
|
{ lib, stdenv, fetchurl, libxcrypt }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-08-05 21:33:18 +00:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "srelay";
|
|
|
|
version = "0.4.8";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2021-08-05 21:33:18 +00:00
|
|
|
url = "mirror://sourceforge/project/socks-relay/socks-relay/srelay-${version}/srelay-${version}.tar.gz";
|
2020-04-24 23:36:52 +00:00
|
|
|
sha256 = "1sn6005aqyfvrlkm5445cyyaj6h6wfyskfncfmds55x34hfyxpvl";
|
|
|
|
};
|
|
|
|
|
|
|
|
patches = [ ./arm.patch ];
|
|
|
|
|
2022-10-30 15:09:59 +00:00
|
|
|
buildInputs = [ libxcrypt ];
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
installPhase = "install -D srelay $out/bin/srelay";
|
|
|
|
|
|
|
|
meta = {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "SOCKS proxy and relay";
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "http://socks-relay.sourceforge.net/";
|
2021-01-15 22:18:51 +00:00
|
|
|
platforms = lib.platforms.unix;
|
|
|
|
license = lib.licenses.bsd3;
|
2022-12-17 10:02:37 +00:00
|
|
|
# never built on aarch64-linux since first introduction in nixpkgs
|
|
|
|
broken = stdenv.isLinux && stdenv.isAarch64;
|
2024-02-29 20:09:43 +00:00
|
|
|
mainProgram = "srelay";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|