diff options
Diffstat (limited to 'nixpkgs/pkgs/data/misc/media-player-info/default.nix')
-rw-r--r-- | nixpkgs/pkgs/data/misc/media-player-info/default.nix | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/data/misc/media-player-info/default.nix b/nixpkgs/pkgs/data/misc/media-player-info/default.nix new file mode 100644 index 000000000000..6d00f34e9787 --- /dev/null +++ b/nixpkgs/pkgs/data/misc/media-player-info/default.nix @@ -0,0 +1,33 @@ +{ stdenv, fetchurl, pkgconfig, 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 = [ 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 = https://www.freedesktop.org/wiki/Software/media-player-info/; + license = licenses.bsd3; + maintainers = with maintainers; [ ttuegel ]; + platforms = with platforms; linux; + }; + } |