summary refs log tree commit diff
path: root/pkgs/tools/networking/i2p
diff options
context:
space:
mode:
authorshak-mar <shakmar@openmailbox.org>2017-06-16 07:59:04 +0200
committershak-mar <shakmar@openmailbox.org>2017-06-16 23:37:57 +0200
commit800139b7fead7692d91f8b949c99a85a3affae07 (patch)
tree0bed59cf842421d1dec7d75ab78fe1154559c04e /pkgs/tools/networking/i2p
parentdda6daa4ff876d6f48cdd3538509c26c3e18af03 (diff)
downloadnixpkgs-800139b7fead7692d91f8b949c99a85a3affae07.tar
nixpkgs-800139b7fead7692d91f8b949c99a85a3affae07.tar.gz
nixpkgs-800139b7fead7692d91f8b949c99a85a3affae07.tar.bz2
nixpkgs-800139b7fead7692d91f8b949c99a85a3affae07.tar.lz
nixpkgs-800139b7fead7692d91f8b949c99a85a3affae07.tar.xz
nixpkgs-800139b7fead7692d91f8b949c99a85a3affae07.tar.zst
nixpkgs-800139b7fead7692d91f8b949c99a85a3affae07.zip
i2p: Add i686-linux platform
Diffstat (limited to 'pkgs/tools/networking/i2p')
-rw-r--r--pkgs/tools/networking/i2p/default.nix16
1 files changed, 14 insertions, 2 deletions
diff --git a/pkgs/tools/networking/i2p/default.nix b/pkgs/tools/networking/i2p/default.nix
index d5b9ff665d4..f760a32d7dd 100644
--- a/pkgs/tools/networking/i2p/default.nix
+++ b/pkgs/tools/networking/i2p/default.nix
@@ -16,7 +16,19 @@ stdenv.mkDerivation rec {
     set -B
     mkdir -p $out/{bin,share}
     cp -r pkg-temp/* $out
-    cp installer/lib/wrapper/linux64/* $out
+    '' +
+
+    # TODO: Compile wrapper ourselves, see https://geti2p.net/en/misc/manual-wrapper
+    (if stdenv.system == "i686-linux"
+    then ''
+      cp installer/lib/wrapper/linux/* $out
+    '' else ''
+      cp installer/lib/wrapper/linux64/* $out
+    '')
+
+     # */ # comment end for vim
+
+    + ''
     sed -i $out/i2prouter -i $out/runplain.sh \
       -e "s#uname#${coreutils}/bin/uname#" \
       -e "s#which#${which}/bin/which#" \
@@ -39,6 +51,6 @@ stdenv.mkDerivation rec {
     maintainers = [ maintainers.joelmo ];
     license = licenses.gpl2;
     # TODO: support other systems, just copy appropriate lib/wrapper.. to $out
-    platforms = [ "x86_64-linux" ];
+    platforms = [ "x86_64-linux" "i686-linux" ];
   };
 }