2021-02-05 17:12:51 +00:00
|
|
|
{ lib, stdenv, fetchurl, pkg-config, python3, udev, systemd }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-10-21 18:38:19 +00:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "media-player-info";
|
|
|
|
version = "24";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-10-21 18:38:19 +00:00
|
|
|
src = fetchurl {
|
|
|
|
url = "https://www.freedesktop.org/software/media-player-info/${pname}-${version}.tar.gz";
|
|
|
|
sha256 = "0d0i7av8v369hzvlynwlrbickv1brlzsmiky80lrjgjh1gdldkz6";
|
|
|
|
};
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-10-21 18:38:19 +00:00
|
|
|
buildInputs = [ udev systemd ];
|
|
|
|
nativeBuildInputs = [ pkg-config python3 ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-10-21 18:38:19 +00:00
|
|
|
postPatch = ''
|
|
|
|
patchShebangs ./tools
|
|
|
|
'';
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-10-21 18:38:19 +00:00
|
|
|
configureFlags = [ "--with-udevdir=${placeholder "out"}/lib/udev" ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-10-21 18:38:19 +00:00
|
|
|
meta = with lib; {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Repository of data files describing media player capabilities";
|
2022-10-21 18:38:19 +00:00
|
|
|
homepage = "https://www.freedesktop.org/wiki/Software/media-player-info/";
|
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = with maintainers; [ ttuegel ];
|
|
|
|
platforms = with platforms; linux;
|
|
|
|
};
|
|
|
|
}
|