summary refs log tree commit diff
path: root/pkgs/data/misc/media-player-info/default.nix
blob: 56e4ace41f4de1ed24d2f8cb339fecc2c4ebb4ae (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
{ lib, stdenv, fetchurl, pkg-config, 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 = [ pkg-config python3 ];

    postPatch = ''
      patchShebangs ./tools
    '';

    configureFlags = [ "--with-udevdir=${placeholder "out"}/lib/udev" ];

    meta = with 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;
    };
  }