summary refs log tree commit diff
path: root/pkgs/tools/filesystems/sshfs-fuse/default.nix
blob: c1502a3227d2e28c32272bc43a7d8d9238509052 (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.10"; # Temporary (need to add libfuse 3.x first)
  name = "sshfs-fuse-${version}";
  
  src = fetchFromGitHub {
    owner = "libfuse";
    repo = "sshfs";
    rev = "sshfs-${version}";
    sha256 = "1dmw4kx6vyawcywiv8drrajnam0m29mxfswcp4209qafzx3mjlp1";
  };
  
  buildInputs = [ pkgconfig glib fuse autoreconfHook ];

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

  meta = with stdenv.lib; {
    inherit (src.meta) homepage;
    description = "FUSE-based filesystem that allows remote filesystems to be mounted over SSH";
    platforms = platforms.linux;
    maintainers = with maintainers; [ primeos ];
  };
}