From 800139b7fead7692d91f8b949c99a85a3affae07 Mon Sep 17 00:00:00 2001 From: shak-mar Date: Fri, 16 Jun 2017 07:59:04 +0200 Subject: i2p: Add i686-linux platform --- pkgs/tools/networking/i2p/default.nix | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) (limited to 'pkgs/tools/networking/i2p') diff --git a/pkgs/tools/networking/i2p/default.nix b/pkgs/tools/networking/i2p/default.nix index d5b9ff665d4a..f760a32d7dd3 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" ]; }; } -- cgit 1.4.1