1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-24 06:31:02 +00:00
nixpkgs/pkgs/data/misc/media-player-info/default.nix
Vladimír Čunát b2e73c81d9 media-player-info: fix build missing udev
I don't know what it actually needs, but it's satisfied by systemd.
2015-10-04 11:59:15 +02:00

33 lines
854 B
Nix

{ 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;
maintainer = with maintainers; [ ttuegel ];
};
}