about summary refs log tree commit diff
path: root/pkgs/tools/filesystems/sshfs-fuse/default.nix
blob: dd49b19358ced1da75e5989f795fee58a789564f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
{ stdenv, fetchFromGitHub, pkgconfig, glib, fuse, autoreconfHook }:

stdenv.mkDerivation rec {
  version = "2.9";
  name = "sshfs-fuse-${version}";
  
  src = fetchFromGitHub {
    repo = "sshfs";
    owner = "libfuse";
    rev = "sshfs-${version}";
    sha256 = "1n0cq72ps4dzsh72fgfprqn8vcfr7ilrkvhzpy5500wjg88diapv";
  };
  
  buildInputs = [ pkgconfig glib fuse autoreconfHook ];

  postInstall = ''
    mkdir -p $out/sbin
    ln -sf $out/bin/sshfs $out/sbin/mount.sshfs
  '';

  meta = with stdenv.lib; {
    homepage = https://github.com/libfuse/sshfs;
    description = "FUSE-based filesystem that allows remote filesystems to be mounted over SSH";
    platforms = platforms.linux;
    maintainers = with maintainers; [ jgeerds ];
  };
}