2021-04-22 02:08:21 +00:00
|
|
|
{lib, stdenv, fetchurl, glib, neon, fuse, autoreconfHook, pkg-config}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "wdfs-fuse";
|
|
|
|
version = "1.4.2";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2021-04-22 02:08:21 +00:00
|
|
|
url = "http://noedler.de/projekte/wdfs/wdfs-${version}.tar.gz";
|
2020-04-24 23:36:52 +00:00
|
|
|
sha256 = "fcf2e1584568b07c7f3683a983a9be26fae6534b8109e09167e5dff9114ba2e5";
|
|
|
|
};
|
2021-04-22 02:08:21 +00:00
|
|
|
nativeBuildInputs = [ autoreconfHook pkg-config ];
|
2020-04-24 23:36:52 +00:00
|
|
|
buildInputs = [fuse glib neon];
|
|
|
|
|
2024-09-26 11:04:55 +00:00
|
|
|
postPatch = lib.optionalString stdenv.hostPlatform.isDarwin ''
|
2021-04-22 02:08:21 +00:00
|
|
|
# Fix the build on macOS with macFUSE installed. Needs autoreconfHook to
|
|
|
|
# take effect.
|
|
|
|
substituteInPlace configure.ac --replace \
|
|
|
|
'export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:$PKG_CONFIG_PATH' ""
|
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "http://noedler.de/projekte/wdfs/";
|
2021-04-22 02:08:21 +00:00
|
|
|
license = licenses.gpl2Plus;
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "User-space filesystem that allows to mount a webdav share";
|
2021-04-22 02:08:21 +00:00
|
|
|
platforms = platforms.unix;
|
2024-01-02 11:29:13 +00:00
|
|
|
mainProgram = "wdfs";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|