linux_xanmod: 5.11.14 -> 5.11.15
[NixPkgs.git] / pkgs / development / libraries / dleyna-core / default.nix
blob4a4eecfdc0f273f8b3d5903ad69c9824fff0dba4
1 { lib, stdenv
2 , fetchFromGitHub
3 , fetchpatch
4 , autoreconfHook
5 , pkg-config
6 , gupnp
7 }:
9 stdenv.mkDerivation rec {
10   pname = "dleyna-core";
11   version = "0.6.0";
13   setupHook = ./setup-hook.sh;
15   src = fetchFromGitHub {
16     owner = "01org";
17     repo = pname;
18     rev = "v${version}";
19     sha256 = "1x5vj5zfk95avyg6g3nf6gar250cfrgla2ixj2ifn8pcick2d9vq";
20   };
22   patches = [
23     ./0001-Search-connectors-in-DLEYNA_CONNECTOR_PATH.patch
25     # fix build with gupnp 1.2
26     # https://github.com/intel/dleyna-core/pull/52
27     (fetchpatch {
28       url = "https://github.com/intel/dleyna-core/commit/41b2e56f67b6fc9c8c256b86957d281644b9b846.patch";
29       sha256 = "1h758cp65v7qyfpvyqdri7q0gwx85mhdpkb2y8waq735q5q9ib39";
30     })
31   ];
33   nativeBuildInputs = [
34     autoreconfHook
35     pkg-config
36   ];
38   propagatedBuildInputs = [
39     gupnp
40   ];
42   meta = with lib; {
43     description = "Library of utility functions that are used by the higher level dLeyna";
44     homepage = "https://01.org/dleyna";
45     maintainers = [ maintainers.jtojnar ];
46     platforms = platforms.linux;
47     license = licenses.lgpl21;
48   };