depot/third_party/nixpkgs/pkgs/tools/networking/phodav/default.nix
Default email c594a97518 Project import generated by Copybara.
GitOrigin-RevId: 301aada7a64812853f2e2634a530ef5d34505048
2022-10-21 20:38:19 +02:00

61 lines
1.2 KiB
Nix

{ stdenv
, lib
, fetchurl
, pkg-config
, libsoup_3
, libxml2
, meson
, ninja
, gnome
}:
stdenv.mkDerivation rec {
pname = "phodav";
version = "3.0";
outputs = [ "out" "dev" "lib" ];
src = fetchurl {
url = "mirror://gnome/sources/phodav/${version}/phodav-${version}.tar.xz";
sha256 = "OS7C0G1QMA3P8e8mmiqYUwTim841IAAvyiny7cHRONE=";
};
nativeBuildInputs = [
pkg-config
meson
ninja
];
buildInputs = [
libsoup_3
libxml2
];
mesonFlags = [
"-Davahi=disabled"
"-Dsystemdsystemunitdir=${placeholder "out"}/lib/systemd/system"
"-Dgtk_doc=disabled"
"-Dudevrulesdir=${placeholder "out"}/lib/udev/rules.d"
];
NIX_LDFLAGS = lib.optionalString stdenv.isDarwin "-lintl";
passthru = {
updateScript = gnome.updateScript {
packageName = pname;
};
};
# 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; {
description = "WebDav server implementation and library using libsoup";
homepage = "https://wiki.gnome.org/phodav";
license = licenses.lgpl21Plus;
maintainers = with maintainers; [ wegank ];
platforms = platforms.unix;
};
}