nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at devShellTools-shell 32 lines 794 B view raw
1{ 2 lib, 3 stdenv, 4 fetchurl, 5 libxcrypt, 6}: 7 8stdenv.mkDerivation rec { 9 pname = "srelay"; 10 version = "0.4.8"; 11 12 src = fetchurl { 13 url = "mirror://sourceforge/project/socks-relay/socks-relay/srelay-${version}/srelay-${version}.tar.gz"; 14 sha256 = "1sn6005aqyfvrlkm5445cyyaj6h6wfyskfncfmds55x34hfyxpvl"; 15 }; 16 17 patches = [ ./arm.patch ]; 18 19 buildInputs = [ libxcrypt ]; 20 21 installPhase = "install -D srelay $out/bin/srelay"; 22 23 meta = { 24 description = "SOCKS proxy and relay"; 25 homepage = "http://socks-relay.sourceforge.net/"; 26 platforms = lib.platforms.unix; 27 license = lib.licenses.bsd3; 28 # never built on aarch64-linux since first introduction in nixpkgs 29 broken = stdenv.hostPlatform.isLinux && stdenv.hostPlatform.isAarch64; 30 mainProgram = "srelay"; 31 }; 32}