summary refs log tree commit diff
path: root/pkgs/tools/filesystems/sshfs-fuse
diff options
context:
space:
mode:
authorMichael Weiss <dev.primeos@gmail.com>2017-09-22 17:10:12 +0200
committerMichael Weiss <dev.primeos@gmail.com>2017-09-22 17:13:24 +0200
commit6f02c3bf7766c89a4efddf84f29184a14afa726f (patch)
tree78f9db0c9b1d9fe1e588ec9d0a9332e7c84e70a4 /pkgs/tools/filesystems/sshfs-fuse
parentab71280823ff3da7d936fb5e01ad30806111a12e (diff)
downloadnixpkgs-6f02c3bf7766c89a4efddf84f29184a14afa726f.tar
nixpkgs-6f02c3bf7766c89a4efddf84f29184a14afa726f.tar.gz
nixpkgs-6f02c3bf7766c89a4efddf84f29184a14afa726f.tar.bz2
nixpkgs-6f02c3bf7766c89a4efddf84f29184a14afa726f.tar.lz
nixpkgs-6f02c3bf7766c89a4efddf84f29184a14afa726f.tar.xz
nixpkgs-6f02c3bf7766c89a4efddf84f29184a14afa726f.tar.zst
nixpkgs-6f02c3bf7766c89a4efddf84f29184a14afa726f.zip
sshfs-fuse: Fix the build on i686-linux
The last upgrade (137142a72cd6ef96b227dd0f1164504abf5546f1) broke the
build on i686. Thanks @globin for noticing this.
Diffstat (limited to 'pkgs/tools/filesystems/sshfs-fuse')
-rw-r--r--pkgs/tools/filesystems/sshfs-fuse/default.nix8
1 files changed, 6 insertions, 2 deletions
diff --git a/pkgs/tools/filesystems/sshfs-fuse/default.nix b/pkgs/tools/filesystems/sshfs-fuse/default.nix
index 62505ac041e..274be305da8 100644
--- a/pkgs/tools/filesystems/sshfs-fuse/default.nix
+++ b/pkgs/tools/filesystems/sshfs-fuse/default.nix
@@ -3,16 +3,20 @@
 stdenv.mkDerivation rec {
   version = "3.2.0";
   name = "sshfs-fuse-${version}";
-  
+
   src = fetchFromGitHub {
     owner = "libfuse";
     repo = "sshfs";
     rev = "sshfs-${version}";
     sha256 = "09pqdibhcj1p7m6vxkqiprvbcxp9iq2lm1hb6w7p8iarmvp80rlv";
   };
-  
+
   buildInputs = [ pkgconfig glib fuse3 autoreconfHook ];
 
+  NIX_CFLAGS_COMPILE = stdenv.lib.optional
+    (stdenv.system == "i686-linux")
+    "-D_FILE_OFFSET_BITS=64";
+
   postInstall = ''
     mkdir -p $out/sbin
     ln -sf $out/bin/sshfs $out/sbin/mount.sshfs