depot/third_party/nixpkgs/pkgs/tools/filesystems/bindfs/default.nix
Default email 7e47f3658e Project import generated by Copybara.
GitOrigin-RevId: 1925c603f17fc89f4c8f6bf6f631a802ad85d784
2024-09-26 11:04:55 +00:00

38 lines
962 B
Nix

{ lib
, stdenv
, fetchurl
, pkg-config
, fuse
, fuse3
}:
stdenv.mkDerivation (finalAttrs: {
version = "1.17.7";
pname = "bindfs";
src = fetchurl {
url = "https://bindfs.org/downloads/bindfs-${finalAttrs.version}.tar.gz";
hash = "sha256-wLBg6Uw6IxodSqC88mb/GJmBpO845C++IylqfYFxm3o=";
};
nativeBuildInputs = [
pkg-config
];
buildInputs = if stdenv.hostPlatform.isDarwin then [ fuse ] else [ fuse3 ];
configureFlags = lib.optional stdenv.hostPlatform.isDarwin "--disable-macos-fs-link";
postFixup = ''
ln -s $out/bin/bindfs $out/bin/mount.fuse.bindfs
'';
meta = {
changelog = "https://github.com/mpartel/bindfs/raw/${finalAttrs.version}/ChangeLog";
description = "FUSE filesystem for mounting a directory to another location";
homepage = "https://bindfs.org";
license = lib.licenses.gpl2Only;
maintainers = with lib.maintainers; [ lovek323 lovesegfault ];
platforms = lib.platforms.unix;
};
})