aboutsummaryrefslogtreecommitdiff
path: root/infra/libkookie/nixpkgs/pkgs/tools/networking/srelay
diff options
context:
space:
mode:
authorMx Kookie <kookie@spacekookie.de>2020-10-31 19:35:09 +0100
committerMx Kookie <kookie@spacekookie.de>2020-10-31 19:35:09 +0100
commitc4625b175f8200f643fd6e11010932ea44c78433 (patch)
treebce3f89888c8ac3991fa5569a878a9eab6801ccc /infra/libkookie/nixpkgs/pkgs/tools/networking/srelay
parent49f735974dd103039ddc4cb576bb76555164a9e7 (diff)
parentd661aa56a8843e991261510c1bb28fdc2f6975ae (diff)
Add 'infra/libkookie/' from commit 'd661aa56a8843e991261510c1bb28fdc2f6975ae'
git-subtree-dir: infra/libkookie git-subtree-mainline: 49f735974dd103039ddc4cb576bb76555164a9e7 git-subtree-split: d661aa56a8843e991261510c1bb28fdc2f6975ae
Diffstat (limited to 'infra/libkookie/nixpkgs/pkgs/tools/networking/srelay')
-rw-r--r--infra/libkookie/nixpkgs/pkgs/tools/networking/srelay/arm.patch12
-rw-r--r--infra/libkookie/nixpkgs/pkgs/tools/networking/srelay/default.nix21
2 files changed, 33 insertions, 0 deletions
diff --git a/infra/libkookie/nixpkgs/pkgs/tools/networking/srelay/arm.patch b/infra/libkookie/nixpkgs/pkgs/tools/networking/srelay/arm.patch
new file mode 100644
index 000000000000..f56f2c0f2f0a
--- /dev/null
+++ b/infra/libkookie/nixpkgs/pkgs/tools/networking/srelay/arm.patch
@@ -0,0 +1,12 @@
+diff -ru srelay-0.4.8b4.orig/configure srelay-0.4.8b4/configure
+--- srelay-0.4.8b4.orig/configure 2010-12-21 01:11:14.000000000 +1100
++++ srelay-0.4.8b4/configure 2016-06-22 09:03:42.250000345 +1000
+@@ -1875,7 +1875,7 @@
+ ;;
+ linux*)
+ case "$host_cpu" in
+- i*86|mips*|powerpc*|sparc*|x86_64*)
++ i*86|mips*|powerpc*|sparc*|x86_64*|arm*)
+ OS=LINUX
+ cat >>confdefs.h <<\_ACEOF
+ #define LINUX 1
diff --git a/infra/libkookie/nixpkgs/pkgs/tools/networking/srelay/default.nix b/infra/libkookie/nixpkgs/pkgs/tools/networking/srelay/default.nix
new file mode 100644
index 000000000000..1e7486dd3059
--- /dev/null
+++ b/infra/libkookie/nixpkgs/pkgs/tools/networking/srelay/default.nix
@@ -0,0 +1,21 @@
+{ stdenv, fetchurl }:
+
+stdenv.mkDerivation {
+ name = "srelay-0.4.8";
+
+ src = fetchurl {
+ url = "mirror://sourceforge/project/socks-relay/socks-relay/srelay-0.4.8/srelay-0.4.8.tar.gz";
+ sha256 = "1sn6005aqyfvrlkm5445cyyaj6h6wfyskfncfmds55x34hfyxpvl";
+ };
+
+ patches = [ ./arm.patch ];
+
+ installPhase = "install -D srelay $out/bin/srelay";
+
+ meta = {
+ description = "A SOCKS proxy and relay";
+ homepage = "http://socks-relay.sourceforge.net/";
+ platforms = stdenv.lib.platforms.unix;
+ license = stdenv.lib.licenses.bsd3;
+ };
+}