2022-10-21 18:38:19 +00:00
|
|
|
{ stdenv
|
|
|
|
, lib
|
2022-08-12 12:06:08 +00:00
|
|
|
, fetchurl
|
|
|
|
, pkg-config
|
2022-10-21 18:38:19 +00:00
|
|
|
, libsoup_3
|
|
|
|
, libxml2
|
2022-08-12 12:06:08 +00:00
|
|
|
, meson
|
|
|
|
, ninja
|
2022-10-21 18:38:19 +00:00
|
|
|
, gnome
|
2022-08-12 12:06:08 +00:00
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-08-12 12:06:08 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "phodav";
|
2022-10-21 18:38:19 +00:00
|
|
|
version = "3.0";
|
|
|
|
|
|
|
|
outputs = [ "out" "dev" "lib" ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2022-10-21 18:38:19 +00:00
|
|
|
url = "mirror://gnome/sources/phodav/${version}/phodav-${version}.tar.xz";
|
|
|
|
sha256 = "OS7C0G1QMA3P8e8mmiqYUwTim841IAAvyiny7cHRONE=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2022-10-21 18:38:19 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
pkg-config
|
|
|
|
meson
|
|
|
|
ninja
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
libsoup_3
|
|
|
|
libxml2
|
2022-08-12 12:06:08 +00:00
|
|
|
];
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
mesonFlags = [
|
|
|
|
"-Davahi=disabled"
|
2022-10-21 18:38:19 +00:00
|
|
|
"-Dsystemdsystemunitdir=${placeholder "out"}/lib/systemd/system"
|
2020-04-24 23:36:52 +00:00
|
|
|
"-Dgtk_doc=disabled"
|
2022-10-21 18:38:19 +00:00
|
|
|
"-Dudevrulesdir=${placeholder "out"}/lib/udev/rules.d"
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
2022-08-12 12:06:08 +00:00
|
|
|
NIX_LDFLAGS = lib.optionalString stdenv.isDarwin "-lintl";
|
|
|
|
|
2022-10-21 18:38:19 +00:00
|
|
|
passthru = {
|
|
|
|
updateScript = gnome.updateScript {
|
|
|
|
packageName = pname;
|
|
|
|
};
|
|
|
|
};
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-08-21 13:32:41 +00:00
|
|
|
# We need to do this in pre-configure before the data/ folder disappears.
|
|
|
|
preConfigure = ''
|
|
|
|
install -vDt $out/lib/udev/rules.d/ data/*-spice-webdavd.rules
|
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "WebDav server implementation and library using libsoup";
|
2024-05-15 15:35:15 +00:00
|
|
|
homepage = "https://gitlab.gnome.org/GNOME/phodav";
|
2022-10-21 18:38:19 +00:00
|
|
|
license = licenses.lgpl21Plus;
|
2022-08-12 12:06:08 +00:00
|
|
|
maintainers = with maintainers; [ wegank ];
|
|
|
|
platforms = platforms.unix;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|