2021-02-05 17:12:51 +00:00
|
|
|
{ lib, stdenv, fetchurl, fuse, pkg-config, attr, uthash }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "mhddfs";
|
|
|
|
version = "0.1.39";
|
|
|
|
|
|
|
|
src = fetchurl {
|
2023-02-02 18:25:31 +00:00
|
|
|
url = "https://mhddfs.uvw.ru/downloads/mhddfs_${version}.tar.gz";
|
2020-04-24 23:36:52 +00:00
|
|
|
sha256 = "14ggmh91vv69fp2qpz0nxp0hprlw2wsijss2k2485hb0ci4cabvh";
|
|
|
|
};
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
nativeBuildInputs = [ pkg-config ];
|
2020-04-24 23:36:52 +00:00
|
|
|
buildInputs = [ fuse attr uthash ];
|
|
|
|
|
|
|
|
patches = [
|
|
|
|
./fix-format-security-error.patch
|
|
|
|
];
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace src/main.c --replace "attr/xattr.h" "sys/xattr.h"
|
|
|
|
substituteInPlace src/tools.c --replace "attr/xattr.h" "sys/xattr.h"
|
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin
|
|
|
|
cp mhddfs $out/bin/
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
2023-02-02 18:25:31 +00:00
|
|
|
homepage = "https://mhddfs.uvw.ru/";
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Combines a several mount points into the single one";
|
2021-01-15 22:18:51 +00:00
|
|
|
license = lib.licenses.gpl3;
|
|
|
|
maintainers = [ lib.maintainers.makefu ];
|
2024-01-02 11:29:13 +00:00
|
|
|
mainProgram = "mhddfs";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|