nixpkgs/pkgs/data/misc/media-player-info/default.nix

32 lines
873 B
Nix
Raw Normal View History

2021-01-17 02:14:13 +00:00
{ lib, stdenv, fetchurl, pkg-config, python3, udev, systemd }:
2015-02-21 16:56:38 +00:00
let
name = "media-player-info-24";
2015-02-21 16:56:38 +00:00
in
stdenv.mkDerivation {
inherit name;
src = fetchurl {
url = "https://www.freedesktop.org/software/media-player-info/${name}.tar.gz";
sha256 = "0d0i7av8v369hzvlynwlrbickv1brlzsmiky80lrjgjh1gdldkz6";
2015-02-21 16:56:38 +00:00
};
buildInputs = [ udev systemd ];
2021-01-17 02:14:13 +00:00
nativeBuildInputs = [ pkg-config python3 ];
2015-02-21 16:56:38 +00:00
postPatch = ''
patchShebangs ./tools
'';
2019-11-11 18:47:34 +00:00
configureFlags = [ "--with-udevdir=${placeholder "out"}/lib/udev" ];
2015-02-21 16:56:38 +00:00
meta = with lib; {
2015-02-21 16:56:38 +00:00
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;
2015-02-21 16:56:38 +00:00
};
}