3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/libraries/dleyna-renderer/default.nix
worldofpeace 8696640f22 dleyna-renderer: checkout patch in tree
Built this locally and noticed that the hash changed

wanted: sha256:0x5vj5zfk95avyg6g3nf6gar250cfrgla2ixj2ifn8pcick2d9vq
got:        sha256:0m7rxv2nnycvwqpc8ak396g8cbb9g6dw290cjbfwhrrhdhbii5qc
2019-04-17 18:27:28 -04:00

62 lines
1.2 KiB
Nix

{ stdenv
, fetchurl
, fetchFromGitHub
, autoreconfHook
, pkgconfig
, dleyna-connector-dbus
, dleyna-core
, gssdp
, gupnp
, gupnp-av
, gupnp-dlna
, libsoup
, makeWrapper
}:
stdenv.mkDerivation rec {
pname = "dleyna-renderer";
version = "0.6.0";
src = fetchFromGitHub {
owner = "01org";
repo = pname;
rev = version;
sha256 = "0jy54aq8hgrvzchrvfzqaj4pcn0cfhafl9bv8a9p6j82yjk4pvpp";
};
patches = [
# fix build with gupnp 1.2
# comes from arch linux packaging https://git.archlinux.org/svntogit/packages.git/tree/trunk/gupnp-1.2.diff?h=packages/dleyna-renderer
./gupnp-1.2.diff
];
nativeBuildInputs = [
autoreconfHook
pkgconfig
makeWrapper
];
buildInputs = [
dleyna-core
dleyna-connector-dbus
gssdp
gupnp
gupnp-av
gupnp-dlna
libsoup
];
preFixup = ''
wrapProgram "$out/libexec/dleyna-renderer-service" \
--set DLEYNA_CONNECTOR_PATH "$DLEYNA_CONNECTOR_PATH"
'';
meta = with stdenv.lib; {
description = "Library to discover and manipulate Digital Media Renderers";
homepage = https://01.org/dleyna;
maintainers = [ maintainers.jtojnar ];
platforms = platforms.linux;
license = licenses.lgpl21;
};
}