summary refs log tree commit diff
path: root/pkgs/data/misc/media-player-info/default.nix
blob: 4d824e6e8d7700e84903276a5b8a8b5ec4e4c9f4 (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
32
33
{ stdenv, fetchurl, pkgconfig, python3, udev, systemd }:

let
  name = "media-player-info-22";
in

  stdenv.mkDerivation {
    inherit name;

    src = fetchurl {
      url = "http://www.freedesktop.org/software/media-player-info/${name}.tar.gz";
      sha256 = "0di3gfx5z8c34yspzyllydr5snzg71r985kbqhrhb1il51qxgrvy";
    };

    buildInputs = [ udev systemd ];
    nativeBuildInputs = [ pkgconfig python3 ];

    postPatch = ''
      patchShebangs ./tools
    '';

    preConfigure = ''
      configureFlags="$configureFlags --with-udevdir=$out/lib/udev"
    '';

    meta = with stdenv.lib; {
      description = "A repository of data files describing media player capabilities";
      homepage = http://www.freedesktop.org/wiki/Software/media-player-info/;
      license = licenses.bsd3;
      maintainers = with maintainers; [ ttuegel ];
      platforms = with platforms; linux;
    };
  }