lol
at 24.11-pre 69 lines 1.6 kB view raw
1{ stdenv 2, lib 3, fetchFromGitHub 4, fetchpatch 5, meson 6, ninja 7, makeWrapper 8, pkg-config 9, dleyna-core 10, dleyna-connector-dbus 11, gssdp 12, gupnp 13, gupnp-av 14, gupnp-dlna 15, libsoup 16}: 17 18stdenv.mkDerivation rec { 19 pname = "dleyna-server"; 20 version = "0.7.2"; 21 22 src = fetchFromGitHub { 23 owner = "phako"; 24 repo = pname; 25 rev = "v${version}"; 26 sha256 = "sha256-jlF9Lr/NG+Fsy/bB7aLb7xOLqel8GueJK5luo9rsDME="; 27 }; 28 29 patches = [ 30 # Fix build with meson 1.2. We use the gentoo patch intead of the 31 # usptream one because the latter only applies on the libsoup_3 based 32 # merged dLeyna project. 33 # https://gitlab.gnome.org/World/dLeyna/-/merge_requests/6 34 (fetchpatch { 35 url = "https://github.com/gentoo/gentoo/raw/2e3a1f4f7a1ef0c3e387389142785d98b5834e60/net-misc/dleyna-server/files/meson-1.2.0.patch"; 36 sha256 = "sha256-/p2OaPO5ghWtPotwIir2TtcFF5IDFN9FFuyqPHevuFI="; 37 }) 38 ]; 39 40 nativeBuildInputs = [ 41 meson 42 ninja 43 pkg-config 44 makeWrapper 45 ]; 46 47 buildInputs = [ 48 dleyna-core 49 dleyna-connector-dbus # runtime dependency to be picked up to DLEYNA_CONNECTOR_PATH 50 gssdp 51 gupnp 52 gupnp-av 53 gupnp-dlna 54 libsoup 55 ]; 56 57 preFixup = '' 58 wrapProgram "$out/libexec/dleyna-server-service" \ 59 --set DLEYNA_CONNECTOR_PATH "$DLEYNA_CONNECTOR_PATH" 60 ''; 61 62 meta = with lib; { 63 description = "Library to discover, browse and manipulate Digital Media Servers"; 64 homepage = "https://github.com/phako/dleyna-server"; 65 maintainers = with maintainers; [ jtojnar ]; 66 platforms = platforms.unix; 67 license = licenses.lgpl21Only; 68 }; 69}