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

34 lines
894 B
Nix
Raw Normal View History

{ stdenv, fetchurl, pkgconfig, python3, udev, systemd }:
2015-02-21 16:56:38 +00:00
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 ];
2015-02-21 16:56:38 +00:00
nativeBuildInputs = [ pkgconfig python3 ];
postPatch = ''
patchShebangs ./tools
'';
2015-02-21 16:56:38 +00:00
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;
2015-02-21 16:56:38 +00:00
};
}