nixpkgs/pkgs/by-name/bi/bindfs/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

39 lines
962 B
Nix
Raw Normal View History

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