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

32 lines
838 B
Nix
Raw Normal View History

2017-08-19 21:42:50 +02:00
{ stdenv, fetchFromGitHub, pkgconfig, glib, fuse3, autoreconfHook }:
stdenv.mkDerivation rec {
2017-08-19 21:42:50 +02:00
version = "3.2.0";
2016-03-06 17:22:17 +01:00
name = "sshfs-fuse-${version}";
2016-02-25 12:27:18 +01:00
src = fetchFromGitHub {
owner = "libfuse";
2017-08-13 22:29:00 +02:00
repo = "sshfs";
2016-03-06 17:22:17 +01:00
rev = "sshfs-${version}";
2017-08-19 21:42:50 +02:00
sha256 = "09pqdibhcj1p7m6vxkqiprvbcxp9iq2lm1hb6w7p8iarmvp80rlv";
};
2017-08-19 21:42:50 +02:00
buildInputs = [ pkgconfig glib fuse3 autoreconfHook ];
2016-02-25 12:27:18 +01: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 08:25:07 +02:00
meta = with stdenv.lib; {
2017-08-13 22:29:00 +02:00
inherit (src.meta) homepage;
description = "FUSE-based filesystem that allows remote filesystems to be mounted over SSH";
2015-06-22 08:25:07 +02:00
platforms = platforms.linux;
2017-08-13 22:29:00 +02:00
maintainers = with maintainers; [ primeos ];
};
}