nixpkgs/pkgs/tools/filesystems/sshfs-fuse/default.nix

35 lines
880 B
Nix
Raw Normal View History

2017-09-23 20:16:14 +00:00
{ stdenv, fetchFromGitHub, meson, pkgconfig, ninja, glib, fuse3
, docutils
2017-09-23 20:16:14 +00:00
}:
stdenv.mkDerivation rec {
2018-06-29 10:11:05 +00:00
version = "3.4.0";
2016-03-06 16:22:17 +00:00
name = "sshfs-fuse-${version}";
2016-02-25 11:27:18 +00:00
src = fetchFromGitHub {
owner = "libfuse";
2017-08-13 20:29:00 +00:00
repo = "sshfs";
2016-03-06 16:22:17 +00:00
rev = "sshfs-${version}";
2018-06-29 10:11:05 +00:00
sha256 = "1mbhjgw6797bln579pfwmn79gs8isnv57z431lbfw7j8xkh75awl";
};
nativeBuildInputs = [ meson pkgconfig ninja docutils ];
buildInputs = [ fuse3 glib ];
2016-02-25 11:27:18 +00:00
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
'';
2015-06-22 06:25:07 +00:00
meta = with stdenv.lib; {
2017-08-13 20:29:00 +00:00
inherit (src.meta) homepage;
description = "FUSE-based filesystem that allows remote filesystems to be mounted over SSH";
2015-06-22 06:25:07 +00:00
platforms = platforms.linux;
2017-08-13 20:29:00 +00:00
maintainers = with maintainers; [ primeos ];
};
}