depot/third_party/nixpkgs/pkgs/tools/filesystems/bindfs/default.nix
Default email 504525a148 Project import generated by Copybara.
GitOrigin-RevId: bd645e8668ec6612439a9ee7e71f7eac4099d4f6
2024-01-02 12:29:13 +01:00

36 lines
862 B
Nix

{ lib
, stdenv
, fetchurl
, pkg-config
, fuse
, fuse3
}:
stdenv.mkDerivation (finalAttrs: {
version = "1.17.6";
pname = "bindfs";
src = fetchurl {
url = "https://bindfs.org/downloads/bindfs-${finalAttrs.version}.tar.gz";
hash = "sha256-076zzGm7K2gCzFOViOkh/qlz7WGRsTPyAkcZMR0cwYs=";
};
nativeBuildInputs = [
pkg-config
];
buildInputs = if stdenv.isDarwin then [ fuse ] else [ fuse3 ];
postFixup = ''
ln -s $out/bin/bindfs $out/bin/mount.fuse.bindfs
'';
meta = {
changelog = "https://github.com/mpartel/bindfs/raw/${finalAttrs.version}/ChangeLog";
description = "A 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;
};
})