Unverified Commit 20bc75e1 authored by Bobby Rong's avatar Bobby Rong
Browse files

dleyna-server: Fix build with meson 1.2

ERROR: Unexpected "[provides]" section, did you mean "[provide]"?
parent 82a0e0f7
Loading
Loading
Loading
Loading
+12 −0
Original line number Diff line number Diff line
{ stdenv
, lib
, fetchFromGitHub
, fetchpatch
, meson
, ninja
, makeWrapper
@@ -25,6 +26,17 @@ stdenv.mkDerivation rec {
    sha256 = "sha256-jlF9Lr/NG+Fsy/bB7aLb7xOLqel8GueJK5luo9rsDME=";
  };

  patches = [
    # Fix build with meson 1.2. We use the gentoo patch intead of the
    # usptream one because the latter only applies on the libsoup_3 based
    # merged dLeyna project.
    # https://gitlab.gnome.org/World/dLeyna/-/merge_requests/6
    (fetchpatch {
      url = "https://github.com/gentoo/gentoo/raw/2e3a1f4f7a1ef0c3e387389142785d98b5834e60/net-misc/dleyna-server/files/meson-1.2.0.patch";
      sha256 = "sha256-/p2OaPO5ghWtPotwIir2TtcFF5IDFN9FFuyqPHevuFI=";
    })
  ];

  nativeBuildInputs = [
    meson
    ninja