2017-09-23 21:16:14 +01:00
|
|
|
{ stdenv, fetchFromGitHub, meson, pkgconfig, ninja, glib, fuse3
|
|
|
|
, buildManPages ? true, docutils
|
|
|
|
}:
|
2007-01-06 17:36:03 +00:00
|
|
|
|
2017-09-23 21:16:14 +01:00
|
|
|
let
|
|
|
|
inherit (stdenv.lib) optional;
|
|
|
|
in stdenv.mkDerivation rec {
|
2017-10-26 06:55:51 +01:00
|
|
|
version = "3.3.1";
|
2016-03-06 16:22:17 +00:00
|
|
|
name = "sshfs-fuse-${version}";
|
2017-09-22 16:10:12 +01:00
|
|
|
|
2016-02-25 11:27:18 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "libfuse";
|
2017-08-13 21:29:00 +01:00
|
|
|
repo = "sshfs";
|
2016-03-06 16:22:17 +00:00
|
|
|
rev = "sshfs-${version}";
|
2017-10-26 06:55:51 +01:00
|
|
|
sha256 = "15z1mlad09llckkadvjfzmbv14fbq218xmb4axkmi7kzixbi41hv";
|
2007-01-06 17:36:03 +00:00
|
|
|
};
|
2017-09-22 16:10:12 +01:00
|
|
|
|
2017-09-23 21:16:14 +01:00
|
|
|
patches = optional buildManPages ./build-man-pages.patch;
|
|
|
|
|
|
|
|
nativeBuildInputs = [ meson pkgconfig ninja ];
|
|
|
|
buildInputs = [ fuse3 glib ] ++ optional buildManPages docutils;
|
2016-02-25 11:27:18 +00:00
|
|
|
|
2017-09-22 16:10:12 +01:00
|
|
|
NIX_CFLAGS_COMPILE = stdenv.lib.optional
|
|
|
|
(stdenv.system == "i686-linux")
|
|
|
|
"-D_FILE_OFFSET_BITS=64";
|
|
|
|
|
2011-08-09 21:38:55 +01:00
|
|
|
postInstall = ''
|
2012-01-18 20:16:00 +00:00
|
|
|
mkdir -p $out/sbin
|
2011-08-09 21:38:55 +01:00
|
|
|
ln -sf $out/bin/sshfs $out/sbin/mount.sshfs
|
|
|
|
'';
|
2007-12-24 13:27:07 +00:00
|
|
|
|
2015-06-22 07:25:07 +01:00
|
|
|
meta = with stdenv.lib; {
|
2017-08-13 21:29:00 +01:00
|
|
|
inherit (src.meta) homepage;
|
2007-12-24 13:27:07 +00:00
|
|
|
description = "FUSE-based filesystem that allows remote filesystems to be mounted over SSH";
|
2015-06-22 07:25:07 +01:00
|
|
|
platforms = platforms.linux;
|
2017-08-13 21:29:00 +01:00
|
|
|
maintainers = with maintainers; [ primeos ];
|
2007-12-24 13:27:07 +00:00
|
|
|
};
|
2007-01-06 17:36:03 +00:00
|
|
|
}
|