git.iko.soy/typeable/nixpkgs
on master help sign in
sshfs: 3.2.0 -> 3.3.0
commit699231ed78ca41db175579bb1d7790a20beb75c4 authorMichael Weiss <dev.primeos@gmail.com> dateSat 23 Sep 2017, 22:16 (9 years ago) parent7d98316
2 files changed+28−5
pkgs/tools/filesystems/sshfs-fuse/build-man-pages.patch+11 pkgs/tools/filesystems/sshfs-fuse/default.nix+17−5
pkgs/tools/filesystems/sshfs-fuse/build-man-pages.patchnew file+11
@@ -0,0 +1,11 @@
1+--- a/meson.build 2017-09-23 22:02:57.770555382 +0200
2++++ b/meson.build 2017-09-23 23:11:28.258095182 +0200
3+@@ -25,7 +25,7 @@
4+ endif
5+
6+
7+-rst2man = find_program('rst2man', required: false)
8++rst2man = find_program('rst2man.py', required: true)
9+
10+ cfg = configuration_data()
11+
pkgs/tools/filesystems/sshfs-fuse/default.nix+17−5
@@ -1,17 +1,25 @@
1−{ stdenv, fetchFromGitHub, pkgconfig, glib, fuse3, autoreconfHook }:
1+{ stdenv, fetchFromGitHub, meson, pkgconfig, ninja, glib, fuse3
2+, buildManPages ? true, docutils
3+}:
24
3−stdenv.mkDerivation rec {
4− version = "3.2.0";
5+let
6+ inherit (stdenv.lib) optional;
7+ rpath = stdenv.lib.makeLibraryPath [ fuse3 glib ];
8+in stdenv.mkDerivation rec {
9+ version = "3.3.0";
510 name = "sshfs-fuse-${version}";
611
712 src = fetchFromGitHub {
813 owner = "libfuse";
914 repo = "sshfs";
1015 rev = "sshfs-${version}";
11− sha256 = "09pqdibhcj1p7m6vxkqiprvbcxp9iq2lm1hb6w7p8iarmvp80rlv";
16+ sha256 = "1hn5c0059ppjqygdhvapxm7lrqm5bnpwaxgjylskz04c0vr8nygp";
1217 };
1318
14− buildInputs = [ pkgconfig glib fuse3 autoreconfHook ];
19+ patches = optional buildManPages ./build-man-pages.patch;
20+
21+ nativeBuildInputs = [ meson pkgconfig ninja ];
22+ buildInputs = [ fuse3 glib ] ++ optional buildManPages docutils;
1523
1624 NIX_CFLAGS_COMPILE = stdenv.lib.optional
1725 (stdenv.system == "i686-linux")
@@ -22,6 +30,10 @@ stdenv.mkDerivation rec {
2230 ln -sf $out/bin/sshfs $out/sbin/mount.sshfs
2331 '';
2432
33+ postFixup = ''
34+ patchelf --set-rpath '${rpath}' "$out/bin/sshfs"
35+ '';
36+
2537 meta = with stdenv.lib; {
2638 inherit (src.meta) homepage;
2739 description = "FUSE-based filesystem that allows remote filesystems to be mounted over SSH";