Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{lib, stdenv, fetchurl, glib, neon, fuse, autoreconfHook, pkg-config}:
2
3stdenv.mkDerivation rec {
4 pname = "wdfs-fuse";
5 version = "1.4.2";
6
7 src = fetchurl {
8 url = "http://noedler.de/projekte/wdfs/wdfs-${version}.tar.gz";
9 sha256 = "fcf2e1584568b07c7f3683a983a9be26fae6534b8109e09167e5dff9114ba2e5";
10 };
11 nativeBuildInputs = [ autoreconfHook pkg-config ];
12 buildInputs = [fuse glib neon];
13
14 postPatch = lib.optionalString stdenv.isDarwin ''
15 # Fix the build on macOS with macFUSE installed. Needs autoreconfHook to
16 # take effect.
17 substituteInPlace configure.ac --replace \
18 'export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:$PKG_CONFIG_PATH' ""
19 '';
20
21 meta = with lib; {
22 homepage = "http://noedler.de/projekte/wdfs/";
23 license = licenses.gpl2Plus;
24 description = "User-space filesystem that allows to mount a webdav share";
25 platforms = platforms.unix;
26 };
27}