1 { lib, stdenv, fetchurl, fuse, pkg-config, attr, uthash }:
3 stdenv.mkDerivation rec {
8 url = "https://mhddfs.uvw.ru/downloads/mhddfs_${version}.tar.gz";
9 sha256 = "14ggmh91vv69fp2qpz0nxp0hprlw2wsijss2k2485hb0ci4cabvh";
12 nativeBuildInputs = [ pkg-config ];
13 buildInputs = [ fuse attr uthash ];
16 ./fix-format-security-error.patch
20 substituteInPlace src/main.c --replace "attr/xattr.h" "sys/xattr.h"
21 substituteInPlace src/tools.c --replace "attr/xattr.h" "sys/xattr.h"
30 homepage = "https://mhddfs.uvw.ru/";
31 description = "Combines a several mount points into the single one";
32 license = lib.licenses.gpl3;
33 maintainers = [ lib.maintainers.makefu ];
34 mainProgram = "mhddfs";