nixpkgs/pkgs/tools/networking/phodav/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

62 lines
1.2 KiB
Nix
Raw Normal View History

{ stdenv
, lib
, fetchurl
, pkg-config
, libsoup_3
, libxml2
, meson
, ninja
, gnome
}:
2018-05-11 18:45:05 +00:00
stdenv.mkDerivation rec {
2019-08-13 21:52:01 +00:00
pname = "phodav";
version = "3.0";
outputs = [ "out" "dev" "lib" ];
2018-05-11 18:45:05 +00:00
src = fetchurl {
url = "mirror://gnome/sources/phodav/${version}/phodav-${version}.tar.xz";
sha256 = "OS7C0G1QMA3P8e8mmiqYUwTim841IAAvyiny7cHRONE=";
2018-05-11 18:45:05 +00:00
};
nativeBuildInputs = [
pkg-config
meson
ninja
];
buildInputs = [
libsoup_3
libxml2
];
2019-10-26 01:21:04 +00:00
mesonFlags = [
"-Davahi=disabled"
"-Dsystemdsystemunitdir=${placeholder "out"}/lib/systemd/system"
2019-10-26 01:21:04 +00:00
"-Dgtk_doc=disabled"
"-Dudevrulesdir=${placeholder "out"}/lib/udev/rules.d"
2019-10-26 01:21:04 +00:00
];
2018-05-11 18:45:05 +00:00
NIX_LDFLAGS = lib.optionalString stdenv.isDarwin "-lintl";
passthru = {
updateScript = gnome.updateScript {
packageName = pname;
};
};
2020-03-14 06:27:10 +00:00
2022-08-13 22:40:36 +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
'';
meta = with lib; {
2018-05-11 18:45:05 +00:00
description = "WebDav server implementation and library using libsoup";
homepage = "https://wiki.gnome.org/phodav";
license = licenses.lgpl21Plus;
maintainers = with maintainers; [ wegank ];
platforms = platforms.unix;
2018-05-11 18:45:05 +00:00
};
}