2023-10-09 19:29:22 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchurl
|
|
|
|
, pkg-config
|
|
|
|
, fuse
|
|
|
|
, fuse3
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-10-09 19:29:22 +00:00
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
2024-01-02 11:29:13 +00:00
|
|
|
version = "1.17.6";
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "bindfs";
|
|
|
|
|
|
|
|
src = fetchurl {
|
2023-10-09 19:29:22 +00:00
|
|
|
url = "https://bindfs.org/downloads/bindfs-${finalAttrs.version}.tar.gz";
|
2024-01-02 11:29:13 +00:00
|
|
|
hash = "sha256-076zzGm7K2gCzFOViOkh/qlz7WGRsTPyAkcZMR0cwYs=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2023-10-09 19:29:22 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
pkg-config
|
|
|
|
];
|
|
|
|
|
2023-04-29 16:46:19 +00:00
|
|
|
buildInputs = if stdenv.isDarwin then [ fuse ] else [ fuse3 ];
|
2023-10-09 19:29:22 +00:00
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
postFixup = ''
|
|
|
|
ln -s $out/bin/bindfs $out/bin/mount.fuse.bindfs
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
2023-10-09 19:29:22 +00:00
|
|
|
changelog = "https://github.com/mpartel/bindfs/raw/${finalAttrs.version}/ChangeLog";
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "A FUSE filesystem for mounting a directory to another location";
|
2023-10-09 19:29:22 +00:00
|
|
|
homepage = "https://bindfs.org";
|
|
|
|
license = lib.licenses.gpl2Only;
|
2021-02-19 19:06:45 +00:00
|
|
|
maintainers = with lib.maintainers; [ lovek323 lovesegfault ];
|
2023-10-09 19:29:22 +00:00
|
|
|
platforms = lib.platforms.unix;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
2023-10-09 19:29:22 +00:00
|
|
|
})
|