depot/third_party/nixpkgs/pkgs/data/misc/media-player-info/default.nix
Default email 8ac5e011d6 Project import generated by Copybara.
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
2020-04-24 19:36:52 -04:00

31 lines
873 B
Nix

{ stdenv, fetchurl, pkgconfig, python3, udev, systemd }:
let
name = "media-player-info-24";
in
stdenv.mkDerivation {
inherit name;
src = fetchurl {
url = "https://www.freedesktop.org/software/media-player-info/${name}.tar.gz";
sha256 = "0d0i7av8v369hzvlynwlrbickv1brlzsmiky80lrjgjh1gdldkz6";
};
buildInputs = [ udev systemd ];
nativeBuildInputs = [ pkgconfig python3 ];
postPatch = ''
patchShebangs ./tools
'';
configureFlags = [ "--with-udevdir=${placeholder "out"}/lib/udev" ];
meta = with stdenv.lib; {
description = "A repository of data files describing media player capabilities";
homepage = "https://www.freedesktop.org/wiki/Software/media-player-info/";
license = licenses.bsd3;
maintainers = with maintainers; [ ttuegel ];
platforms = with platforms; linux;
};
}