mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-27 08:04:14 +00:00
571c71e6f7
We are migrating packages that meet below requirements: 1. using `callPackage` 2. called path is a directory 3. overriding set is empty (`{ }`) 4. not containing path expressions other than relative path (to makenixpkgs-vet happy) 5. not referenced by nix files outside of the directory, other than`pkgs/top-level/all-packages.nix` 6. not referencing nix files outside of the directory 7. not referencing `default.nix` (since it's changed to `package.nix`) 8. `outPath` doesn't change after migration The tool is here: https://github.com/Aleksanaa/by-name-migrate.
62 lines
1.3 KiB
Nix
62 lines
1.3 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.hostPlatform.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://gitlab.gnome.org/GNOME/phodav";
|
|
license = licenses.lgpl21Plus;
|
|
maintainers = with maintainers; [ wegank ];
|
|
platforms = platforms.unix;
|
|
};
|
|
}
|