2023-04-29 16:46:19 +00:00
|
|
|
{ lib, stdenv, fetchurl, fuse, fuse3, pkg-config }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2023-03-08 16:32:21 +00:00
|
|
|
version = "1.17.2";
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "bindfs";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://bindfs.org/downloads/${pname}-${version}.tar.gz";
|
2023-03-08 16:32:21 +00:00
|
|
|
sha256 = "sha256-XyxQpwuNWMAluB+/Nk+tQy0VSTZjDOACPMiLqo1codA=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
nativeBuildInputs = [ pkg-config ];
|
2023-04-29 16:46:19 +00:00
|
|
|
buildInputs = if stdenv.isDarwin then [ fuse ] else [ fuse3 ];
|
2020-04-24 23:36:52 +00:00
|
|
|
postFixup = ''
|
|
|
|
ln -s $out/bin/bindfs $out/bin/mount.fuse.bindfs
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "A FUSE filesystem for mounting a directory to another location";
|
|
|
|
homepage = "https://bindfs.org";
|
2021-02-19 19:06:45 +00:00
|
|
|
license = lib.licenses.gpl2Only;
|
|
|
|
maintainers = with lib.maintainers; [ lovek323 lovesegfault ];
|
2021-01-15 22:18:51 +00:00
|
|
|
platforms = lib.platforms.unix;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|