1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-25 23:20:55 +00:00
nixpkgs/pkgs/tools/filesystems/bindfs/default.nix
Balletie d852a23662 bindfs: Let mount find bindfs mount helper
When mount is used with mount-type "fuse.bindfs", it cannot find the
mount helper.

If mount can't find `mount.fuse.bindfs`, it executes the `mount.fuse`
mount helper and passes `fuse.bindfs` as argument. Then `mount.fuse`
tries to execute `bindfs` on its own, but it is not found in the PATH.

By creating a `mount.fuse.bindfs` link to the `bindfs` executable, this
problem is avoided because `mount` will just execute the
`mount.fuse.bindfs` mount helper without `mount.fuse` in the middle.
2016-03-29 16:40:11 +02:00

27 lines
698 B
Nix

{ stdenv, fetchurl, fuse, pkgconfig }:
stdenv.mkDerivation rec {
version = "1.12.6";
name = "bindfs-${version}";
src = fetchurl {
url = "http://bindfs.org/downloads/${name}.tar.gz";
sha256 = "0s90n1n4rvpcg51ixr5wx8ixml1xnc7w28xlbnms34v19pzghm59";
};
dontStrip = true;
buildInputs = [ fuse pkgconfig ];
postFixup = ''
ln -s $out/bin/bindfs $out/bin/mount.fuse.bindfs
'';
meta = {
description = "A FUSE filesystem for mounting a directory to another location";
homepage = http://bindfs.org;
license = stdenv.lib.licenses.gpl2;
maintainers = with stdenv.lib.maintainers; [ lovek323 ];
platforms = stdenv.lib.platforms.unix;
};
}