Skip to content

Commit

Permalink
sshfs-fuse: Fix the build on i686-linux
Browse files Browse the repository at this point in the history
The last upgrade (137142a) broke the
build on i686. Thanks @globin for noticing this.

(cherry picked from commit 6f02c3b)
  • Loading branch information
primeos authored and globin committed Sep 22, 2017
1 parent f5d5180 commit b8919e7
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions pkgs/tools/filesystems/sshfs-fuse/default.nix
Expand Up @@ -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
Expand Down

0 comments on commit b8919e7

Please sign in to comment.